Arrays that holds classes.

 

Hello Is there a way i can create my own class and reference it through an array ?


The class is of non-default data types. (int, float, double, etc.)

Why i ask. :-)


class DataRateStructure
  {
public:
   double            DataRateData_Bid;
   double            DataRateData_Ask;
   datetime          DataRateDateTIme;

class AngleOfPurchaseStructure : public CObject
  {
public:
   string            DataRates[5,1];

                     AngleOfPurchaseStructure()
     {

     }

  };
                     DataRateStructure() {}   };
 
Chris Stols: Hello Is there a way i can create my own class and reference it through an array ?
  1. Repost your code that compiles.
  2. All classes can be “referenced through an array,”  as long as there is a default constructor (compiler generated, or yours).