下面的函数是检验输入的字符是大写还是小写或者不是26个字母,请填空。
#include<iostream>
using namespace std;
void fun(char ch)
if((ch>=’a’)&&(ch<=’2’))
cout<<"是小写字母:"<<ch<<endl;
else
If 【8】
cout<<"是大写字母:"<<ch<<endl;
else
cout<<"是其他字符:"<<ch<<endl;
void main()
char ch;
cout<<"请输入一个字符:";
cin>>ch;
fun(ch);