知识点:
复合类型:
字符/字符数组。
#include <iostream>
using namespace std;
int main() {
char word[50];
char res[100];
int i = 0;
while ((scanf("%s", word)) != EOF) {
res[i++] = toupper(word[0]);
}
res[i] = '\0';
printf("%s", res);
return 0;
}



京公网安备 11010502036488号