编辑: 赵志强 | 2019-07-15 |
Input 输入数据有若干行,每行上有一个字符串.字符串中分隔单词的字符为一个空格或一个连字符('-').单词中不包含连字符.字符串的长度不超过100个字符. Output 对于每一个字符串,输出结果,每行最后有一个换行符. Sample Input United States of America PEOPLE'S REPUBLIC OF CHINA The Asia-Pacific Economic Cooperation Organization of the Petroleum Exporting Countries United Nation Educational Scientific and Culture Organization Universal Serial Bus Sample Output USA PRC APEC OPEC UNESCO USB #include #include #include char upper(char c){ if(c>='a'&&cc>>n){ for(i=1;
i