Please, I am trying to access the "time" constant in a class. The idea was or is to create a function in the class that accepts the const, then pass it to a class variable "m_time", which I would be able to use in the class for member functions that would require the time Array to run.
class Run
{
private:
datetime m_time[]; // Time Array I intend to use in the class for all function that require time arraypublic:
//---void Init(constdatetime &time[]);
Run(void){};
~Run(void){};
}Temp;
void Run::Init(constdatetime &time[])
{
m_time = time;
}
Am getting different type of Error messages ranging from invalid array access to "&" improper use etc ... I have tried different things, but the solution is proving evasive, any help would be appreciated.
Predefined Macro Substitutions - Named Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Please, I am trying to access the "time" constant in a class. The idea was or is to create a function in the class that accepts the const, then pass it to a class variable "m_time", which I would be able to use in the class for member functions that would require the time Array to run.
Am getting different type of Error messages ranging from invalid array access to "&" improper use etc ... I have tried different things, but the solution is proving evasive, any help would be appreciated.
Thanks