hdoj 2026
来源:互联网 发布:visual c#是c语言吗 编辑:程序博客网 时间:2024/06/04 19:27
#include<iostream>
#include<cctype>
using namespace std;
int main(void)
{
char s[100];
int len;
int count;
while (gets(s))
{
len = strlen(s);
for (int i = 0; i < len; i++)
{
count = 0;
if (s[i] == ' ') continue;
else
{
for (int j = i; j < len; j++)
{
if (s[j] == ' ') break;
else count++;
}
s[i] = toupper(s[i]);
i = i + (count - 1);
}
}
cout << s << endl;
}
return 0;
}
#include<cctype>
using namespace std;
int main(void)
{
char s[100];
int len;
int count;
while (gets(s))
{
len = strlen(s);
for (int i = 0; i < len; i++)
{
count = 0;
if (s[i] == ' ') continue;
else
{
for (int j = i; j < len; j++)
{
if (s[j] == ' ') break;
else count++;
}
s[i] = toupper(s[i]);
i = i + (count - 1);
}
}
cout << s << endl;
}
return 0;
}
阅读全文
0 0
- HDOJ-2026
- [HDOJ]2026
- HDOJ 2026
- HDOJ--2026
- hdoj 2026
- hdoj 2026
- HDOJ
- hdoj
- hdoj
- HDOJ
- hdoj 2026 首字母变大写
- HDOJ 2026 首字母变大写
- HDOJ 2026 首字母变大写
- HDOJ 2026 首字母变大写
- HDOJ 2026 首字母变大写
- HDOJ 2026 首字母变大写
- hdoj.2026 首字母变大写 20140726
- hdoj 2026 首字母变大写 C++
- hdoj 2025
- 双击退出、单击退出应用程序
- 机器学习
- Struts2中的校验框架
- Asp.net MVC中使用JQuery插件ajaxFileUpload上传文件
- hdoj 2026
- es与kibana插件安装
- 图像频谱图
- C语言——确定某数比特位中1的个数并打印其32位比特数值
- hdoj 2027
- Gerrit FAQ
- 如何选择深度学习优化器
- 【简记】Computer Networking——application layer(part one)
- git push 问题:committer 'xxx (x)' does not match your user account