String类型
- 遍历String
string str("string"); for(auto s: str){ cout<<c<<endl; } - 遍历String并改变字符
string str("string"); for(auto &s: str){ c = toupper(c); } cout<<c<<endl; - auto&&decltype
int i = 42; //decltype(i) int 类型 //decltype((i)) int& 类型 //auto j = i int类型
深信服公司福利 746人发布
查看8道真题和解析