lxzzZ @ 2017-10-03 13:00:52
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,a[100],s=1,t;
cin>>n;
if(n<0)
{
n=0-n;
t=1;
cout<<'-';
}
while(n!=0)
{
a[s]=n%10;
n=n/10;
if(n==0) break;
s=s+1;
}
for(int i=1;i<=s;i++) if(i!=0) cout<<a[i];
return 0;
}
by 起名真的很难 @ 2017-10-03 14:53:23
你没删前导0