c语言之字符串转大写联系

	char name[64] = { "xiaohai" };
	char* p = name;
	while (*p != '\0') {
		*p = toupper(*p);
		p++;
	}
	cout << name << endl;
posted @ 2024-03-07 15:51  我不是萧海哇~~~  阅读(15)  评论(0)    收藏  举报