Possible Duplicate:
Read a password from std::cin
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.
#include <iostream>
using namespace std;
int main()
{
char v;
cout << "Choose!\n";
cout << "a. Choose a\n";
cout << "b. Choose b\n";
cin >> v;
return 0;
}
Thanks in advice.