title: how to print a string to console in c++
body: <p>Im trying to print a string to console in c++ console application.</p>
  
  <pre><code>void Divisibility::print(int number, bool divisible)
  {
      if(divisible == true)
      {
          cout &lt;&lt; number &lt;&lt; " is divisible by" &lt;&lt; divisibleBy &lt;&lt; endl;
      }
      else
      {
          cout &lt;&lt; divisiblyBy &lt;&lt; endl;
      }
  }
  </code></pre>
  
  <p>i have the correct includes etc, this error i believe is just that i simply dont know how to print to console in c++ yet and this i guess isnt the way to do it </p>
  
  <p>EDIT: sorry forgot to mention divisiblyBy is the string </p>