解题思路:
注意事项:
参考代码:
#include <iostream> #include<string> using namespace std; int main() { string str; while(getline(cin,str)) { if(str=="End of file") break; int n=str.size(); for(int i=0;i<n;i++) { if(islower(str[i])) str[i]=toupper(str[i]); } cout<<str<<endl; } //cout << "Hello world!" << endl; return 0; }
0.0分
2 人评分