题解 | #反向输出一个四位数#
反向输出一个四位数
http://www.nowcoder.com/practice/1f7c1d67446e4361bf4af67c08e0b8b0
#include<bits/stdc++.h>
using namespace std;
int main(){
unsigned int n;
cin>>n;
string s=to_string(n);//将数转换成字符串
reverse(s.begin(), s.end());//反转字符串
cout<<s<<endl;
return 0;
}

