1_聚合类.cpp
#include<iostream> using namespace std; //如果一个类只定义成员变量,而没有定义成员函数,那么该类被称作聚合类 struct student{ int id; string name; int age; }; int main() { }