i have a problem and i can not solve it. Problem is that for example there is an admission form on internet and a student enter his name in digits no dought it is wrong and now here is a problem how to restrict the student that he/she should not enter his name in wrong data type. so it is necassary to compare the data type. if same then proceed otherwise terminate. now what will be the condition. on data type.
string name; cout<<"Enter your name"; getline(cin,name); if(name!=string) cout<<"wrong entry";
is it true