跳到正文

个人记录

结构体

#SUSPENDED#约 1 分钟
原文
文章信息与版本

文章信息

发布
2025年4月10日
收录
2025年12月12日
更新
2026年11月17日
篇幅
约 1 分钟
获赞
1

版本

  1. v1当前
C++
#include<bits/stdc++.h>
using namespace std;
struct student
{
	int a;
	string b;
	double c,d,e;
};
int main()
{
	student stu[10];
	for(int i=0;i<10;i++)
		cin>>stu[i].a>>stu[i].b>>stu[i].c>>stu[i].d>>stu[i].e;
	for(int i=0;i<10;i++)
		cout<<stu[i].a<<" "<<stu[i].b<<" "<<stu[i].c<<" "<<stu[i].d<<" "<<stu[i].e<<endl;	
	return 0;
}
原文