I'm having one problem with the getch() function. Let's say I do something like this..
The character that I press when getch() comes up will be put onto the screen when I go to input the name array. For example, let's say when getch() comes up, I press "a". Now the the next line would read this: Enter Name: aCode:short a = getch(); //need the value! char* name; cout << "Enter Name: "; cin >> name;
is there a way to fix this? if you want to see exactly what i mean, download the file and run the .exe
if you want to see the source code, i'm using dev 4.9.4.1 But just open the .exe



LinkBack URL
About LinkBacks



Please see previous explanations of why, and instead of getting defensive maybe you should research what I say and try to prove me wrong. That would be more effective than the equivalent of saying "Is not!". 