//1、学习到字符输入
//2、判断字符

#include<iostream>
using namespace std;

int main()
{
    char a;
    cout<<"please input a charcter: "<<endl;
    cin>>a;


    if(a>'0'&&a<'9')
    {
        cout<<"it's a numerical character!"<<endl;
    }else
    {
        cout<<"it's not a numerical character!"<<endl;
    }
    return 0;
}

 

相关文章:

  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
猜你喜欢
  • 2021-09-22
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案