B
bhutho
Hello All,
I want to get the user input of string of particular length say three character after which user need not to press enter button and I should get the string in the variable.
string name;
cout << "Please enter the the three initial letters of your name: ";
cin >> name;
But the problem is I dont want the user to press enter after pressing the three initial. How can I do it?
_getch() allows me to get only one char. But I want to get the string of particular length.
Please help!
I want to get the user input of string of particular length say three character after which user need not to press enter button and I should get the string in the variable.
string name;
cout << "Please enter the the three initial letters of your name: ";
cin >> name;
But the problem is I dont want the user to press enter after pressing the three initial. How can I do it?
_getch() allows me to get only one char. But I want to get the string of particular length.
Please help!