cin>>v[++cnt].x; cin>>v[cnt].y; cin>>v[cnt].z;这样没问题 cin>>v[++cnt].x>>v[cnt].y>>v[cnt].z;这样就不对了
第二种方法读入数据会导致v[cnt].x=v[cnt].y; 求教,这是为什么