首字母变大写:
#include#include #include #include using namespace std;#define N 1000char str[N];int main(){ while(gets(str)){ int len=strlen(str); str[0]=toupper(str[0]); int i; for(i=1;i
本文共 339 字,大约阅读时间需要 1 分钟。
首字母变大写:
#include#include #include #include using namespace std;#define N 1000char str[N];int main(){ while(gets(str)){ int len=strlen(str); str[0]=toupper(str[0]); int i; for(i=1;i
转载于:https://blog.51cto.com/beyond316/1257416