标签:span div begin 字符 code ring pre 翻转 end
#include<bits/stdc++.h> using namespace std; int main() { string a = "abc"; string a1 = a; reverse(a.begin(),a.end()); cout<<a1<<endl<<a<<endl; return 0; }
输出结果
abc cba
标签:span div begin 字符 code ring pre 翻转 end
原文地址:https://www.cnblogs.com/2019go5/p/11371139.html