编辑代码

#include <bits/stdc++.h>
using namespace std;

int main()
{
    cout<<isdigit(48); // 判断字符是否为数字
    cout<<" "<<isdigit(65);
    cout<<"\n"<<isalpha(48); // 判断字符是否为字母
    cout<<" "<<isalpha(65);
    cout<<"\n"<<isalnum(48); // 判断字符是否为数字或字母
    cout<<" "<<isalnum(65);
    cout<<"\n"<<islower(65); // 判断字符是否为小写字母
    cout<<" "<<islower(97);
    cout<<"\n"<<isupper(65); //判断字符是否为大写字母
    cout<<" "<<isupper(97);
	return 0;
}