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

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