描述
填写代码,按要求输出结果:#include <iostream>
#include <string>
using namespace std;
// 在此处补充你的代码
int main() {
int t;
cin >> t;
while( t -- ) {
int b1[10];
for(int i = 0;i < 10; ++i)
cin >> b1[i];
A<int, 10> a1 = b1;
cout << a1[2] << endl;
double b2[5] ;
for(int i = 0;i < 5; ++i)
cin >> b2[i];
A<double, 5> a2 = b2;
cout << a2.sum() << endl;
string b3[4] ;
for(int i = 0;i < 4; ++i)
cin >> b3[i];
A<string, 4> a3 = b3;
cou
014:编程填空:又见模板
最新推荐文章于 2024-07-02 14:10:13 发布
![](https://img-home.csdnimg.cn/images/20240611030827.png)