c++ 中如何将输入的char首字母大写

2024-10-22 16:44:45
推荐回答(1个)
回答1:

调用C函数库中的toupper功能。比如存储了wang,你就 toupper(name[0]);