#include<ctype.h> -------- char c = '1'; bool result = isdigit(c); if(result) cout << "Yes, it is digit" << endl; else cout << "No, it is't digit" << endl;