How can I restrict the user to input real numbers only in C++ program?
Example:
double number; cin >> number;
and it won\'t accept t
Here's some pseudo code;
double num; while( num != realNum) //check input is valid { cin >> num; } ....