#include #include using namespace std;int main(){\tstring st;\tint i, len;\tgetline(cin, st);\tlen = st.size();\tfor (i = 0; i < len; i ){\t\tif (st[i] >= 'a' && st[i] <= 'z')\t\t\tst[i] = st[i] - 'a' 'A';\t}\tcout << st << endl;\treturn 0;}
输入: Hello, my name is Lostmonkey.
输出:
发表评论 取消回复