将用户输入的字符串中所有的小写英文字母转换成对应的大写英文字母,其余符号不变,并输出转换后的字符串。
注意:编程过程中对于程序给定的部分不允许修改,考试仅允许在 /****code****/ 提示行区间内作答。
见下面样例。
见下面样例。
yyds123ABC#
YYDS123ABC#
#include <iostream>
#include <string>
using namespace std;
void cuuper(char *str)
{
/********code************/
/********code************/
}
int main()
{
char str[1000];
cout<<"请输入一个字符串:"<<endl;
cin.getline(str,1000);
cuuper(str);
cout<<str<<endl;
return 0;
}