struct应该写在哪里比较好?
现在有这样几个struct
enum Element_Name{
Air_intake,
Engine,
Exhaustshutter,
Fan,
Oil_filter,
Radiator,
Subdriver_box,
Subdriver_oil_filter,
Transmission_case,
Transmission_shaft,
};
struct Connection1
{
Element_Name element_name;
float Constrainx;
float Constrainy;
float Constrainz;
};
struct Connection2
{
Element_Name elelement_name;
float distance;
};
struct Element
{
float Base_x;
float Base_y;
float Base_z;
float MAX_Deep;
float MAX_Length;
float MAX_Width;
float MAX_X;
float MIN_X;
float MAX_Y;
float MIN_Y;
float MAX_Z;
float MIN_Z;
int Connectionkind1_Num;
int Connectionkind2_Num;
}
我在vc6里头新建的对话框工程,上面的struct都是比较常用的,还要继续编一些函数对其进行操作 上面的代码放到什么类里头比较好?
自己新建个class么? 还是+到dlg或者app类里头那??