// 大小写转换.cpp : 定义控制台应用程序的入口点。
//
//#include "stdafx.h"
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<stdlib.h>
using namespace std;
const int maxn = 1005;
char str[ maxn ];
//string str;
//int _tmain(int argc, _TCHAR* argv[])
int main()
{
while( cin >> str ){
for( int i = 0; i < strlen( str ); ++i )
str[ i ] = toupper( str[ i ] );
cout << str << endl;
}
return 0;
}
大小写转换
最新推荐文章于 2023-11-11 15:02:18 发布