首页 > 其他分享 >03

03

时间:2022-10-28 16:36:22浏览次数:35  
标签:03 rollback cout 10 int put

#include<bits/stdc++.h>
using namespace std;
class rollback
{
public:
int n,m=0;
void in_out_put()
{
cout<<"input number:";
cin>>n;
while(n>0){
m=m*10+n%10;
n=n/10;
}
cout<<m<<endl;
}
};
int main(){
rollback n;
n.in_out_put();
}

标签:03,rollback,cout,10,int,put
From: https://www.cnblogs.com/sunyang13763857269/p/16836532.html

相关文章