André Franco: The error i am getting is 'CArrayObj' - declaration without type
Did you declare/define CArrayObj prior to use?
Always post all relevant code (using Code button) or attach the file.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
Hello,
I didn't post all code because i though it was irrelevant. This is an include file.
The file:
// The structure for storing the points, found by the zigzag struct TPoints { double ValuePoints[]; // the values of the found points int IndexPoints[]; // the indexes of the found points int NumPoints; // the number of found points }; // A class for storing the parameters of a wave class TWave { public: string Name; // name of the wave string Formula; // the formula of the wave (1-2-3-4-5, <1-2-3 etc.) int Level; // the level of the wave double ValueVertex[6]; // the value of the top of the wave int IndexVertex[6]; // the indexes of the top of the waves }; // A class for the presentation of the tree of the waves class TNode : public CObject { public: CArrayObj *Child; // node childs TWave *Wave; // wave string Text; // node text TNode *Add(string Text,TWave *Wave=NULL) // function of adding a node into the tree { TNode *Node = new TNode; Node.Child = new CArrayObj; Node.Text =Text; Node.Wave = Wave; Child.Add(Node); return(Node); } };
This is an include file that i am "fixing" it.
Thanks!
The file is complete on my previous post
Alexandre hi!
That solved my problem. What a dumb mistake.
Thanks my man!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hey y'all
I am sorry if this is a stupid question but i am new to mql5 and i cannot understand what i am missing here.
The error i am getting is 'CArrayObj' - declaration without type in
Node.Child = new CArrayObj;
I don't know if it has anything to do with pointers.
Thanks !