| ||||||||||
| 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 | |||||||||
Re:大家帮忙看看啊 我到底错在哪??急~~In Reply To:大家帮忙看看啊 我到底错在哪??急~~ Posted by:xtu6418 at 2006-09-11 15:08:07 > #include<iostream>
> using namespace std;
> int main()
> {long double a1,a2;
> cin>>a1;
> while(1)
> {cin>>a2;
> if(a2==999)
> break;
> else
> {if((a2-a1)!=0)~~~~~~~~~~~~~~~~~~~~~把这句话注释掉
> printf("%.2f\n",a2-a1);
> }
> a1=a2;
> }
> cout<<"End of Output"<<endl;
> return 0;
> }
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator