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

2024-10-28 20:11:25
推荐回答(1个)
回答(1):

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