title: Receiving 0 and 1 instead of false and true (respectively)
body: <pre><code>int main() {
    //accepting a string from the user and displaying it
    string input;
    cout &lt;&lt; &quot;Enter a sample text:&quot; &lt;&lt; endl;
    getline(cin,input);
    cout &lt;&lt; endl &lt;&lt; endl;
    cout &lt;&lt; &quot;You entered: &quot; &lt;&lt; input &lt;&lt; endl &lt;&lt; endl;
    //Displaying the command menu
    PrintMenu();
    cout &lt;&lt; endl
         &lt;&lt; &quot;Choose an option:&quot; &lt;&lt; endl;
    //accepting an option from the user
    char choice;
    cin &gt;&gt; choice;
    
    //converting the choice to lowercase
    choice = tolower(choice);
    /*
      checking whether a valid menu option is entered. If not,      the program keeps accepting values until a valid option 
      is being entered. 
    */
    bool verify = (choice=='c' || choice=='w' || choice=='f' || choice=='r' || choice=='s' || choice=='q')?true:false;
    cout &lt;&lt; verify &lt;&lt; endl;
     return 0;
  }
  </code></pre>
  <p>In this code above, I received 0 (for <code>false</code>) and 1 (for <code>true</code>) instead of simply receiving <code>true</code> / <code>false</code>. Can someone explain the reason? Is it because the <code>main()</code> method is supposed to <code>return</code> only <code>int</code> values? But this is a <code>cout</code> statement.</p>