struct jud { int x,y,t; jud (int xx,int yy,int tt) { x=xx;y=yy;t=tt; } };
收起
结构体也可以有构造函数的,与 class 相似。只是其成员默认是 public 的,而 class 默认是 private 的。
报告相同问题?