class CNode
{
public:
int ActionNumber;
CNode* Action[];
CString Data;
CNode();
virtual ~CNode();
};
No class/struct may contain a undefined-element-count array. This construct may only be used when declaring and immediatly initializing a global or stack array and as function parameter.
But this one is extremly obvious:
Code:
new Head;
new Loc;
new Prv;
Oh my, have you any idea what the new keyword is for and how to use it?
Better go to some page like www.cplusplus.com or www.cprogramming.org and grab a tutorial.
All the buzzt CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.