#include<bits/stdc++.h>
using namespace std;
int main(){
double *p = new double[11];
cout << "依次输入6个学生成绩:" << endl;
for(int i = 1; i < 7; i++){
cout << "输入第"<< i <<"个学生成绩:" << endl;
cin >> p[i];
}
for(int i = 1; i < 7; i++){
cout << p[i] << " ";
}
delete []p;
return 0;
}
8/29c++
最新推荐文章于 2024-09-14 13:16:14 发布