Hi Mr McBrine.
hope your well bro ;)
I need to get the users input in the question...
now if I use getch it will not accept an integar.
if I use scanw it wont accept a char,
but if I use
flushinp(); //just in case
it will accept both int and char.
Is this correct,Ive had problems like this before
that work only to crash the program later.
My question being...Is getstr() the only way to protect against erroneous input.
;) keep up the amazing work.
I don't really understand the question. But certainly scanw() will accept a char, if you use it correctly.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.