
please wait
|
|
System("cls")
is one way but you can look up other ways to clear the screen. Basically that's what you need to do. Otherwise if you want only that particular point to be erased then you need to find a way to set the console cursor position (I know this can be done on windows).
|
|
Enter an integer: 3A Invalid input Enter an integer: 30 40 50 Invalid input Enter an integer: 30 Valid integer is 30 Enter a double: 12.5A Invalid input Enter a double: 12.5e2 Valid double is 1250 Enter a char: abc Invalid input Enter a char: a Valid char is a |