How would I do something like this? I know that this will not work, I'm just using it to show what I need with help. When a user is suppose to enter a number, but instead enters a string or char, it gives him a cout message saying it doesn't work.
int Variable; string SomeString if (int Variable = SomeString) cout << "Must enter a number" << endl;
and the other way around
int Variable; string SomeString if (SomeString = Variable) cout << "Must enter a string" << endl;