解题思路:
注意事项:
参考代码:
#include<iostream> #include<string> using namespace std; int main() { string str[9]; str[0]="---------------------------------------------------"; str[1]="COUNTRY AREA(10K km2) POP.(10K) GDP(Billion$)"; str[2]="---------------------------------------------------"; str[3]="China 960.00 129500.00 1080.00"; str[4]="Iceland 10.30 27.57 8.20"; str[5]="India 297.47 97000.00 264.80"; str[6]="Madagascar 62.70 1635.00 3.60"; str[7]="Maldive 0.0298 27.80 0.23"; str[8]="---------------------------------------------------"; for(int i=0;i<9;i++) { cout<<str[i]<<endl; } return 0; }
0.0分
0 人评分