题库 信息学奥赛题库 题目列表 阅读程序写结果:#include <iostream> #include...
填空题

阅读程序写结果:

#include <iostream> #include <string> using namespace std; int main() { string st; int i, len; getline( cin, st ); len = st.size(); for ( i = 0; i < len; i++ ) if ( st[i] >= 'a' && st[i] <= 'z' ) st[i] = st[i] - 'a' + 'A'; cout << st << endl; return(0); }

输入:Hello, my name is Lostmonkey.

输出:________________________________

题目信息
2014年 初赛
-
正确率
0
评论
51
点击