|
From: <Olu...@ao...> - 2002-11-26 09:53:54
|
I want to write a function that will validate my C++ prgram. I want the function to display a message if wrong value type is entered. For example - int number1; cout << " Enter your number. The number must be between 1 and 4: " ; cin >> number1; if the user enter, a char value instead of a int value, i want the function to display a message of violation of variable type. Is it possible to write this type of function and what is the syntax. thnaks olu...@ao... |