0
How to read character of string before enter is pressed?
I'm working on my very first project in c++ that is hotel management system. User Id consists of 13 letters so i took string instead of int. how to check if the user has entered correct input now?
7 Réponses
0
with conditional statements
+ 3
if(input.equals(id)){};
0
string functions have compare parameters
0
can you elaborate? what parameters?
0
strcmp()
0
ok I'll try this parameter and will let you know if it worked for me..thank you btw ☺
0
If you are on wondows check GetAsyncKeyState