try{int value = atoi(str);cout << "Chislo";} catch (Exception e){cout << "Ne chislo";}
for(auto i:str)if(i<'0' || i>'9'){cout<<"ERROR;break;}