【用法总结】C++中经常使用的大小写转换(4种经常使用方法)

1、若是使用string类,可使用#include <algorithm>里的以下方法进行大小写转换;ios   transform(str.begin(),str.end(),str.begin(),::tolower);数组   记得::tolower前面有::, 并且是::tolower,不是::tolower()spa #include <iostream> #include <algor
相关文章
相关标签/搜索