#include <iostream> #include <string> using namespace std; struct student { // 结构体具有三个成员 string name; int age; double height; }; int main() { // 输出学生信息 student s; cin >> s.name >> s.age >> s.height; cout << s.name << " " << s.age << " " << s.height << " "; return 0; }