c語言之字串轉大寫聯絡

萧海~發表於2024-03-07
	char name[64] = { "xiaohai" };
	char* p = name;
	while (*p != '\0') {
		*p = toupper(*p);
		p++;
	}
	cout << name << endl;

相關文章