im having trouble verifying an alpha numeric input...

my program needs to ask for a number and when the input is alphabet it will say invalid input, but when the input is is alphanumeric it still accept it. how can i validate an alphanumeric input?
cout<<"Enter Transmission | ";
cin>>num;
while(!cin)
{
cout<<"Invalid Input! Try Again! |\n";
cin.clear();
cin.ignore();
cin>>num;
}
result+=num;

this is a sample of my syntax for my program
Topic archived. No new replies allowed.