-
getche();
i know ive been here alot today, and i think this is the same question as a few posts ago but
Code:
int a=0;
a=getche();
cout<<"after this will be the key i pressed";
[edit]
The thing is....I DONT WANT NUMBER AFTER "pressed"
Im using Dev-C++ dos programming
-
What's the question?:p
[edit]
What? I don't want number after pressed? What'd you mean?
-
Re: getche();
>>a=getche();
>>I DONT WANT NUMBER AFTER "pressed"
getche() echos the key to the screen. To suppress it, use getch() (if you have it)