- 博客(2)
- 收藏
- 关注
原创 C++中 string字符串大小写转换的两种方式
C++中 string字符串大小写转换的两种方式 这里提供两种对c++中string字符串进行大小写转换的方式(windows系统vs) 第一种方式:下标 #include<iostream> #include<string> using namespace std; int main() { string str; cin >> str; //注意这里对于中间有空格的单词只会将第一个空格前的单词大写 //getline(cin, str); 可
2021-03-16 20:36:45
10043
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅