Sometimes there are comments in the mqh files and maybe there's a book or web tutorial. For specific problems you could search at Stack Overflow they have a MQL section there.
lippmaje: Sometimes there are comments in the mqh files and maybe there's a book or web tutorial. For specific problems you could search at Stack Overflow they have a MQL section there.
Hi
in the MQL5 Reference I cannot find any information about the constructors of classes that define generic collections.
For example how do I know the constructors of the class CSortedMap?
You can find this info if you generate a compiler error. But this is a very strange way, isn't it?
Compile this and you will see:
'CSortedSet<int>' - no one of the overloads can be applied to the function call CtorInfo.mq5 4 20
could be one of 6 function(s) CtorInfo.mq5 4 20
CSortedSet<int>::CSortedSet<int>(int&[],IComparer<int>*) SortedSet.mqh 27 22
CSortedSet<int>::CSortedSet<int>(int&[]) SortedSet.mqh 26 22
CSortedSet<int>::CSortedSet<int>(ICollection<int>*,IComparer<int>*) SortedSet.mqh 25 22
CSortedSet<int>::CSortedSet<int>(ICollection<int>*) SortedSet.mqh 24 22
CSortedSet<int>::CSortedSet<int>(IComparer<int>*) SortedSet.mqh 23 22
CSortedSet<int>::CSortedSet<int>() SortedSet.mqh 22 22
1 errors, 0 warnings 2 1
My maxim is:
Life without docu is possible!
Matthias