title: How to find a string of 2 words in a file?
body: <p>With the following code, I can find a string of 1 word (in this example I'm looking for "Word"):</p>
  
  <pre><code>ifstream file("file.txt");
  string str;
  while (file &gt;&gt; str){
      if (str.find("Word") != string::npos){
           ////
      }
  }
  </code></pre>
  
  <p>But it doesn't work if I want to find, for example, "Computer screen", which is composed of two words.</p>
  
  <p>Thanks</p>