MQL
MQL document
test1.mqh
Go to the documentation of this file.
1 //+------------------------------------------------------------------+
2 //| test1.mqh |
3 //| Copyright 2017, MetaQuotes Software Corp. |
4 //| https://www.mql5.com |
5 //+------------------------------------------------------------------+
6 
16 #property copyright "Copyright 2017, MetaQuotes Software Corp."
17 #property link "https://www.mql5.com"
18 
23 #define STR_MACRO "This is simple string"
24 
25 
26 long lgVar = 0;
36 int intSumm (int x, int y) { return (x + y); }
37 
38 
39 class CTest {
40  public:
41  CTest():i_var(0) {}
42 
47  const int GetVar() {return (i_var);}
48  private:
49  int i_var;
50 };
Pretty nice class.
Definition: test1.mqh:39
int intSumm(int x, int y)
Very, very important function.
Definition: test1.mqh:36
int i_var
integer Var.
Definition: test1.mqh:49
const int GetVar()
simple func
Definition: test1.mqh:47
CTest()
constructor
Definition: test1.mqh:41
long lgVar
Definition: test1.mqh:26