title: Using stringstream to input/output a bool value
body: <p>this may seem like a stupid question but i am stumped. Here is my code:</p>
  
  <pre><code>int main()
  {
      string line, command;
      getline(cin, line);
      stringstream lineStream(line);
  
      bool active;
      lineStream &gt;&gt;active;
      cout &lt;&lt;active&lt;&lt;endl;
  
  }
  </code></pre>
  
  <p>no matter what i input for active, it always prints out 0. so lets say my input was </p>
  
  <pre><code>true
  </code></pre>
  
  <p>it would output 0 and same thing for false.</p>