title: C++ cout does not work with the method
body: <p>I'm trying to implement a hidden word finder game, it reads the puzzle from the text file and then tries to find out where the hidden word is. However, when I try to make a top top bottom search, nothing appears on the screen, even when I write a simple cout command independent from the method. Here is the code: (Output is nothing btw)</p>
  
  <pre><code>bool WordPuzzle::searchTopToBottom(string word){
    cout &lt;&lt; "asdasda";
    string fullWord = "";
    int i = 0;
    int j = 0;
    int index = 0;
    int count;
    bool a = false;
    while (i &lt; numOfColumn){
      while (j &lt; numOfRow){
        if (word[index] == puzzle[i][j]){
          i++;
          index++;
          count++;
          fullWord += word[index];
          if (count == word.size()){
            a = true;
            break;
          }
        }
        else
          j++;
      }
    }
    if (a){
      cout &lt;&lt; fullWord;
      return true;
    }
    else{
      cout &lt;&lt; "not found";
      return false;
    }
  }
  
  
  int main (){
    cout &lt;&lt; "qweqw";
    WordPuzzle w ("puzzle.txt");
    cout &lt;&lt; "qweqw";
    w.searchTopToBottom("DEMIR");
    return 0;
  }
  </code></pre>