文件名称:将随意给出的字符串中所有小写字母转换为大写字母
文件大小:691B
文件格式:RAR
更新时间:2012-06-10 04:58:21
小写字母转换为大写字母
输入同样为Input.txt文件,输出为标准输出。 【问题描述】 将随意给出的字符串中所有小写字母转换为大写字母。 【输入】 输入的文件为一个字符串,字符串的长度小于3000。 【输出】 全部为大写字母的字符串。 程序运行后结果示例: 【样例输入】 Founded in 1940, Chongqing Institute of Technology (CQIT) has now become a regular institution of higher learning that keeps engineering as its mainstay and takes account of engineering, economics, management, science, arts and law. 【样例输出】 FOUNDED IN 1940, CHONGQING INSTITUTE OF TECHNOLOGY (CQIT) HAS NOW BECOME A REGULAR INSTITUTION OF HIGHER LEARNING THAT KEEPS ENGINEERING AS ITS MAINSTAY AND TAKES ACCOUNT OF ENGINEERING, ECONOMICS, MANAGEMENT, SCIENCE, ARTS AND LAW. 不同于一般的解决办法,而使用空间来换取循环时间利用的算法
【文件预览】:
input.txt
小写字符转换为大写字母.cpp