| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
这个为什么会编译错误?我用DEV C++可以过啊。。。。。#include <iostream>
using namespace std;
int main()
{
int n,ia,ib,ic,len,i;
char a[100001];
char b[100001];
char c[100001];
cin>>n;
while(n--)
{
cin>>a>>b;
strcpy(a,strrev(a));
strcpy(b,strrev(b));
ia=atoi(a);
ib=atoi(b);
ic=ia+ib;
itoa(ic,c,10);
len=strlen(c);
strcpy(c,strrev(c));
for(i=0;i<len;i++)
{
if(c[i]!='0')
{
for(;i<len;i++)
cout<<c[i];
cout<<endl;
break;
}
}
}
system("pause");
return 0;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator