C++_聚合类

1_聚合类.cpp

#include<iostream>

using namespace std;

//如果一个类只定义成员变量,而没有定义成员函数,那么该类被称作聚合类
struct student{
    int id;
    string name;
    int age;
};

int main()
{


}
posted @ 2016-03-30 14:01  夜色下的港湾  Views(223)  Comments(0Edit  收藏  举报