题解 | #结构体简单使用#
结构体简单使用
https://www.nowcoder.com/practice/87c31efeb07b496cb88b137b54b98330
#include <iostream>
using namespace std;
typedef struct student{
char name[100];
int age;
float heigth;
}stu;
int main()
{
stu A;
cin.get(A.name,100);
cin>>A.age>>A.heigth;
cout<<A.name<<' '<<A.age<<' '<<A.heigth;
return 0;
}

