📜  c++ char 它是一个数字 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.450000             🧑  作者: Mango

代码示例2
#include
--------
char c = '1';
bool result = isdigit(c);
if(result)
    cout << "Yes, it is digit" << endl;
else
    cout << "No, it is't digit" << endl;