摘要: 构造函数初始化结构体 C++结构体的继承默认是public,而c++类的继承默认是private struct node{ int a,b; node():a(0),b(0){} node(int a,int b):a(a),b(b){} }; 应用 1 #include<iostream> 2 # 阅读全文
posted @ 2019-05-21 18:03 ___292 阅读(410) 评论(0) 推荐(0) 编辑