动态结构体数组的定义,期待高手解决!!!
struct mynew
{
int x;
int y;
int z;
double a;
double b;
double c;
};
int m_N; //m_N为一个变量,随着程序在变化,大小不定
mynew m_mynew[m_N];
VC中要想得到动态的结构体数组,怎么解决,望高手指点一二!!
························································
下面这种方案好像不行~~~~~
int n;
struct mystruct
{
int x;
};
struct mystruct *pStruct;
pStruct = new mystruct[n];