c语言之字符串转大写联系
char name[64] = { "xiaohai" };
char* p = name;
while (*p != '\0') {
*p = toupper(*p);
p++;
}
cout << name << endl;
char name[64] = { "xiaohai" };
char* p = name;
while (*p != '\0') {
*p = toupper(*p);
p++;
}
cout << name << endl;