一个很水的结构体
#include<bits/stdc++.h>
using namespace std;
struct student //结构体
{
string name;
int age;
double high;
}a;
int main()
{
cin>>a.name>>a.age>>a.high;
cout<<a.name<<" "<<a.age<<" "<<a.high;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
struct student //结构体
{
string name;
int age;
double high;
}a;
int main()
{
cin>>a.name>>a.age>>a.high;
cout<<a.name<<" "<<a.age<<" "<<a.high;
return 0;
}