习题(经济发展数据的文本存储) — 数据复制, 减少不必要的数据录入工作

如果你是手机扫描,请分享链接至计算机,然后在计算机里使用浏览器打开并复制。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
vector<int> years;
for (auto i=1960;i<=2021;i++)
years.push_back(i);

vector<double> gdp = { //单位:亿美元
597.16,500.57,472.09,507.07,597.08,704.36,767.20,728.82,708.47,797.06,
926.03,998.01,1136.88,1385.44,1441.82,1634.32,1539.40,1749.38,
1495.41,1782.81,1911.49,1958.66,2050.90,2306.87,2599.47,3094.88,3007.58,
2729.73,3123.54,3477.68,3608.58,3833.73,4269.16,4447.31,5643.25,7345.48,
8637.47,9616.04,10290.43,10939.97,12113.47,13393.96,14705.50,16602.88,
19553.47,22859.66,27521.32,35503.43,45943.07,51017.03,60871.64,75515.00,
85322.30,95704.07,104756.83,110615.53,112332.76,123104.09,138948.18,
142799.38,147227.31,177271.82
};