10.16总结

include

include

using namespace std;
struct Student{
int id;
string name;
int score;
};
int main(){
Student student[100];
int n=0;
while(cin>>student[n].id>>student[n].name>>student[n].score){
n++;
}
for(int i=0;i<n;i++){
if(student[i].score<60){
cout<<student[i].id<<","<<student[i].name<<","<<student[i].score<<endl;
}
}
}

posted @ 2025-10-19 15:58  Cx330。  阅读(2)  评论(0)    收藏  举报