下面的函数是检验输入的字符是大写还是小写或者不是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);
}
题库:计算机等级考试
类型:填空题
时间:2017-07-03 17:11:51
免费下载:《填空》Word试卷
下面的函数是检验输入的字符是大写还是小写或者不是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);
}
本题关键词:写字楼,符号数字试验,数字字符串,阿是,写字能力,空心十字试验,云是利胶囊,开关现象是,单价填写,合价填写;