📅  最后修改于: 2022-03-11 14:44:45.450000             🧑  作者: Mango
#include
--------
char c = '1';
bool result = isdigit(c);
if(result)
cout << "Yes, it is digit" << endl;
else
cout << "No, it is't digit" << endl;