title: How do I read a single character with no echo in C++?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1413445/read-a-password-from-stdcin">Read a password from std::cin</a>  </p>
  </blockquote>
  
  
  
  <p>I'm new to c++ programming and i have the following situation. I'm reading a char from stdin and assign it to a variable "v". Using "cin" the variable is printed to stdout before reading it. I want only to read it and store in "v", not print it.</p>
  
  <pre><code>#include &lt;iostream&gt;  
  using namespace std;  
  
  int main()  
  {  
      char v;  
      cout &lt;&lt; "Choose!\n";  
      cout &lt;&lt; "a. Choose a\n";  
      cout &lt;&lt; "b. Choose b\n";  
      cin &gt;&gt; v;  
      return 0;  
  }
  </code></pre>
  
  <p>Thanks in advice.</p>