I want to type a word in, but i do not want to see the characters. Example: If i type "What" i want to see "****", but the words have to be stored in the '*' any ideas.
I know they is a way to clear the stream after i have typed a word but have failed to find it.
Is they a way to type a word in and then have in deleted while in prompt? This is just a function i am trying to write.
Hope it is clear to read.
// headers
{
float twoplayer(float w)
{
string p;
string x;
int charcount;
x = '*';
int i;
cout << "Enter a word" << endl;
cin >> p;
i = 0;
p.assign(p, i, p.ength());
}