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 |
请高手指路“什么是presentation error”#include <iostream.h> int main() { float pi=3.14159; int r=0; long double a=0; long double r2=0; long double locatex[100]; long double locatey[100]; cin>>r; int y=0; for (y=0;y<r;y++) { cin>>locatex[y]>>locatey[y]; } for (y=0;y<r;y++) { r2=(locatex[y]*locatex[y]+locatey[y]*locatey[y]); while (2*(50*a)<pi*r2) { a=a+1; } cout<<"Property"<<y+1<<":"<<"This property will begin eroding in year "<<a<<"."<<endl; } cout<<"END OF OUTPUT."<<endl; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator