C++_聚合类

来源:互联网 发布:双门网络门禁控制器 编辑:程序博客网 时间:2024/05/21 07:59

1_聚合类.cpp

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