Download MetaTrader 5

Is it possible to setup one enbeded struct as private member of a class?

To add comments, please log in or register
Jose Ignacio Martin Somokurzio
44
Jose Ignacio Martin Somokurzio  

Something like this...

 

class CDemo
     {
      private:
            struct STR{
                  double  m_array[]  ;
                  double  m_array1[] ;
                  double  m_array2[] ;
                  };
      public:
            CDemo(void){};
           ~CDemo(void){};
            CDemo(double &marray[],double &marray1[],double &marray2[]);
      protected:
            void CDemo::setArray(STR &, double &mArray[], double &mArray1[], double &mArray2[]);
     };
Doerk Hilger
1189
Doerk Hilger  

I think the compiler already gave you the answer.  

To add comments, please log in or register