I just knew about getch() and found it better than cin (a lot) but there's one problem bugging me, can you makea n if statement for getch()?
For example they have:
int a;
cin >> a;
if (a == 1)
//blah
else if (a ==2)
//blah
else
//blah
But can you do something similar with getch()? I thought putting a in those brackets would work but it kept on saying too many arguments to function "int getch()". Can anyone help me with this?
Thanks.