title: reassigning strings in a vector using loops
body: <p>I am a beginner learning c++ trying to write a program that will read words into a vector, replace "bad" words with "BLEEP" and print out the vector after it is censored. 
      Here is where I think my mistakes might be...
  nested loop - if in a while
  words.size - should it be words.length?</p>
  
  <p>Any insight is appreciated</p>
  
  <pre><code>#include "../../std_lib_facilities.h"
  
  int main()
  {
      cout &lt;&lt; "type in text";
      vector&lt;string&gt; words;
      string word = "";
      while (cin &gt;&gt; word)
      {
          {
              if (word == "boo" || "broccoli" || "moist")
                  word = "BLEEP";
          }
          words.push_back(word);
      }
  
      for (int i = 0; i &lt; words.size(); ++i)
          cout &lt;&lt; "" &lt;&lt; words[i] &lt;&lt; "";
  }
  </code></pre>