In my program I am getting data from the user and putting into a struct. I use getch() to validate each character as its inputted. When I use this on character or string fields it works fine, but when I use it on number fields it saves incorrect data. Maybe the ascii value? But I want it to save what the user is inputting.
int ch;
ch = getch()
That's the code I'm using.
Please help.
int ch;
ch = getch()
That's the code I'm using.
Please help.