没有语法错误
struct vector3m
{
public:
int id;
point3d stress;
vector3d v_max,v_mid,v_min;
int z_style;
point3d p0,p1,p2,p3,p4,p5,p6,p7;
vector3m(int id,
double stress_max,double stress_mid,double stress_min,
double v_maxx,double v_maxy,double v_maxz,double v_midx,double v_midy,double v_midz,double v_minx,double v_miny,double v_minz,
int z_style,
double p0x,double p0y,double p0z
double p1x,double p1y,double p1z,
double p2x,double p2y,double p2z,
double p3x,double p3y,double p3z,
double p4x,double p4y,double p4z,
double p5x,double p5y,double p5z,
double p6x,double p6y,double p6z,
double p7x,double p7y,double p7z):
stress(stress_max,stress_mid,stress_min),
v_max(v_maxx,v_maxy,v_maxz),v_mid(v_midx,v_midy,v_midz),v_min(v_minx,v_miny,v_minz),
p0(p0x,p0y,p0z),p1(p1x,p1y,p1z),p2(p2x,p2y,p2z),p3(p3x,p3y,p3z),p4(p4x,p4y,p4z),
p5(p5x,p5y,p5z),p6(p6x,p6y,p6z),p7(p7x,p7y,p7z) {}
};
这个就是我的结构体
程序中还建立了一个容器vector<vector3m> r_vct_vector3m
初始化一组数据后
vector3m tmp_3m(id,
stress_max, stress_mid,stress_min,
v_maxx, v_maxy,v_maxz,v_midx, v_midy,v_midz, v_minx, v_miny, v_minz,
z_style,
p0x, p0y, p0z,
p1x, p1y, p1z,
p2x, p2y, p2z,
p3x, p3y, p3z,
p4x, p4y, p4z,
p5x, p5y, p5z,
p6x, p6y, p6z,
p7x, p7y, p7z);
vct_vector3m.push_back(tmp_3m);/////id=9 和 z_style=0
这步后里面的id 和 z_style的值变成了-858993460