class baseclass_name

 
//+------------------------------------------------------------------+
//|                                                      classes.mq5 |
//|                                  Copyright 2023, MetaQuotes Ltd. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2023, MetaQuotes Ltd."
#property link      "https://www.mql5.com"
#property version   "1.00"

class baseclass_name
  {
public:
                     baseclass(void);
                    ~baseclass(void);
  };
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
   
  }
//+------------------------------------------------------------------+
When I try to make a class the puplic: stops at _ underscore. Se in picture.
 
Dan Højgaard:
When I try to make a class the puplic: stops at _ underscore. Se in picture.

The constructor and destructor must have the same name as the class

 

Don't post pictures of code, they are generally too hard to read.

Please edit your (original) post and use the CODE button (or Alt+S)! (For large amounts of code, attach it.)
          General rules and best pratices of the Forum. - General - MQL5 programming forum (2019)
          Messages Editor

 
Lorentzos Roussos #:

The constructor and destructor must have the same name as the class

That is the problem. When I write class baseclass_name the constructor/destructor stops at baseclass.

In the video he just write it and the  constructor/destructor follow with and beyond the underscore. 

 
Dan Højgaard #: That is the problem. When I write class baseclass_name the constructor/destructor stops at baseclass.In the video he just write it and the  constructor/destructor follow with and beyond the underscore. 

Then type out the rest! That is what the keyboard is for.

class baseclass_name {
   public:
       baseclass_name(void);
      ~baseclass_name(void);
};
 
Dan Højgaard #:

That is the problem. When I write class baseclass_name the constructor/destructor stops at baseclass.

In the video he just write it and the  constructor/destructor follow with and beyond the underscore. 

Thank you for details

class snippet will be fixed



UPD: fixed
 
Dan Højgaard #:

That is the problem. When I write class baseclass_name the constructor/destructor stops at baseclass.

In the video he just write it and the  constructor/destructor follow with and beyond the underscore. 

There is a shortcut to automatically fill in the class basics if i recall correctly . 

And sometimes , if you mean while typing , the ide will lag behind expecially on big projects .

Reason: