|
发表于 2019-9-9 14:05:25
|
显示全部楼层
本楼为最佳答案
- #include <iostream>
- #include <cmath>
- #include <iomanip>
- using namespace std;
- int main()
- {
- int i,j,T=0,V=0;
- int ax=45,ay=0;
- double n=0,x=0,y=0,k=0;
- double wc=0;
-
- cout<<"Calm"<<'\t';
- for(j=0;j<=17;j++){
- cout<<left<<setw(6)<<(ax-=5);
- }
- cout<<endl;
- for(i=1;i<=12;i++){
- V=5*i;
- cout<<left<<(ay+=5)<<'\t';
- for(j=0;j<=17;j++){
- T=40-5*j;
- x=V;
- y=0.16;
- n=pow(x,y);
- k=35.74+0.6215*T;
- wc=k-(35.75*n)+(0.4275*T*n);
- cout<<left<<setw(6)<<int(wc);
- }
- putchar('\n');
- }
- return 0;
- }
复制代码 |
|