Problem : function must have a body

 
First of all hello everyone

I'll keep getting the same error message in the code I gave you below.

I'd appreciate it if you'd help.

Thanks
//+------------------------------------------------------------------+
//|                                                       Update.mq4 |
//|                        Copyright 2020, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2020, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---    
         double      x[]  =  {10,20,30,40,50}   ;
         double      y[]  =  {11,22,33,44,55}   ; 
         Print("*****");  
         arList      *Test = new arList(x,y);
         Print("*****");
         for(int i=0;i<ArraySize(Test.kademe);i++)
           {
                  Print("index : " ,i, "  kademe : " ,Test.kademe[i] ,  "  step  :  ",Test.step[i]);
           }

         genel *genelim = new genel("EURUSD",x,y);  
  }

//+------------------------------------------------------------------+
class arList
  {
         public:
               double      kademe[]    ;
               double      step[]      ;
                              void  arList();
                              void  arList(const double &Kademe[],const double &Step[]);
                             ~arList(void);
  };
//-----------------
  void   arList::arList(const double &Kademe[], const double &Step[])
         {
               int size    =     ArraySize(Kademe)    ;

               ArrayCopy(kademe,Kademe)               ;
               ArrayCopy(step,Step)                   ;
         }  
 //+------------------------------------------------------------------+
class genel :  arList
  {
         public:
            string   parite      ;
            int      adet        ;
            arList   *xlist      ;      ;
                              genel(void);
                        void  genel(string Parite,double &x[],double &y[]);      
                             ~genel(void);
  };        
  //***********
     void genel::genel(string Parite,double &x[],double &y[])
     {
            xlist          =  new arList(x,y);
            this.adet      =  ArraySize(x);     
            Print("Parite Adı : " , parite," Toplam Kayıt   :  ", adet);
            for(int i=0;i<adet;i++)
              {
                     Print("Index   :  ", i , " Kademe : ", xlist.kademe[i] , "  Step : " ,xlist.step[i] );
              }
     }
       
 
Ümit Terzi: I'll keep getting the same error message in the code I gave you below.

                              void  arList();

                              genel(void);

You said there are two functions but never provided their code.

 
William Roeder:

You said there are two functions but never provided their code.

What do you think is the solution?
 
Ümit Terzi: What do you think is the solution?
  1. Provide their code.
  2. Or, stop declaring nonexistent functions / methods / constructors.
Reason: