title: Need help on this Text message decoder (C++) exercise
body: <p>These are the directions:</p>
  
  <ol>
  <li><p>Use <code>getline()</code> to get a line of user input into a string. Output the line. (3 pts)      <br/><br/>
  <strong>Ex:</strong><br>
  <strong>Enter text:</strong> IDK if I'll go. It's my BFF's birthday.<br>
  <strong>You entered:</strong> IDK if I'll go. It's my BFF's birthday.
  <br/><br/></p></li>
  <li><p>Search the string (using <code>find()</code>) for common abbreviations and print a list of each found abbreviation along with its decoded meaning. (3 pts) <br/><br/>
  <strong>Ex:</strong><br>
  <strong>Enter text:</strong> IDK if I'll go. It's my BFF's birthday.<br>
  <strong>You entered:</strong> IDK if I'll go. It's my BFF's birthday.     </p></li>
  </ol>
  
  <p>Support to these abbreviations:</p>
  
  <p><strong>BFF</strong> -- best friend forever<br>
  <strong>IDK</strong> -- I don't know<br>
  <strong>JK</strong> -- just kidding<br>
  <strong>TMI</strong> -- too much information<br>
  <strong>TTYL</strong> -- talk to you later     </p>
  
  <p>I've been trying to code and get 6/6 possible points on this but I end up getting 3/6.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  
  int main() {
  
  string input;
  
  cout &lt;&lt; "Enter text: ";
  getline(cin, input);
  
  cout &lt;&lt; endl &lt;&lt;"You entered: " &lt;&lt; input &lt;&lt; endl;
  
  if (input.find("BFF") &amp;&amp; input.find("IDK"))
  {
  cout &lt;&lt; "BFF: best friend forever" &lt;&lt; endl;
  cout &lt;&lt; "IDK: I don't know" &lt;&lt; endl;
  } 
  
  if (input.find("JK") &amp;&amp; input.find("TMI") &amp;&amp; input.find("TTYL"))
  {
     cout &lt;&lt; "JK: just kidding" &lt;&lt; endl;
     cout &lt;&lt; "TMI: too much information" &lt;&lt; endl;
     cout &lt;&lt; "TTYL: talk to you later" &lt;&lt; endl;
  }
     return 0;
  }
  </code></pre>
  
  <p>I'm not getting the last 3 points:</p>
  
  <p>Compare output
  0/2</p>
  
  <p>Input
  IDK if I'll go. It's my BFF's birthday.</p>
  
  <p>Your output </p>
  
  <p>Enter text:</p>
  
  <p>You entered: IDK if I'll go. It's my BFF's birthday.</p>
  
  <p>BFF: best friend forever</p>
  
  <p>IDK: I don't know</p>
  
  <p>JK: just kidding</p>
  
  <p>TMI: too much information</p>
  
  <p>TTYL: talk to you later</p>
  
  <p>Expected output 
  Enter text:</p>
  
  <p>You entered: IDK if I'll go. It's my BFF's birthday.</p>
  
  <p>BFF: best friend forever</p>
  
  <p>IDK: I don't know</p>
  
  <p>Compare output
  0/1</p>
  
  <p>Input
  Nice pic, TMI haha JK. TTYL</p>
  
  <p>Your output </p>
  
  <p>Enter text:</p>
  
  <p>You entered: Nice pic, TMI haha JK. TTYL</p>
  
  <p>BFF: best friend forever</p>
  
  <p>IDK: I don't know</p>
  
  <p>Expected output </p>
  
  <p>Enter text:</p>
  
  <p>You entered: Nice pic, TMI haha JK. TTYL</p>
  
  <p>JK: just kidding</p>
  
  <p>TMI: too much information</p>
  
  <p>TTYL: talk to you later</p>