mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
15 lines
291 B
C++
15 lines
291 B
C++
|
#include <ctype.h>
|
||
|
#include <stdio.h>
|
||
|
int main(void)
|
||
|
{
|
||
|
char t[128] = {' '};
|
||
|
int i;
|
||
|
while (gets(t + 1))
|
||
|
{
|
||
|
for (i = 1 ; t[i] ; i++)
|
||
|
putchar((isalpha(t[i]) && t[i-1] == ' ') ? toupper(t[i]) : t[i]);
|
||
|
putchar('\n');
|
||
|
}
|
||
|
return 0;
|
||
|
}
|