Download MetaTrader 5

include iostream or include standard template libraries

To add comments, please log in or register
raghavanp
13
raghavanp 2015.01.05 19:33 

Hi,

I am new to MQL. I am trying to inlude iostream or STL like vectors. When I do #include <iostream>, i am getting message can't open "C:\Users\\MetaQuotes\Terminal\129CCEC886F792C\MQL4\include\iostream" include file

I understand that my code tries to find iostream in that path. But that wont be present there.

May i know how to do #include <iostream> or say #include <vector>

Thanks, 

Alain Verleyen
Moderator
31091
Alain Verleyen 2015.01.05 19:53  
raghavanp:

Hi,

I am new to MQL. I am trying to inlude iostream or STL like vectors. When I do #include <iostream>, i am getting message can't open "C:\Users\\MetaQuotes\Terminal\129CCEC886F792C\MQL4\include\iostream" include file

I understand that my code tries to find iostream in that path. But that wont be present there.

May i know how to do #include <iostream> or say #include <vector>

Thanks, 

Are you talking about C++ "iostream" and "vector" header file ?

You can't do that. mql4/5 are independent languages, you can't use C++ code.

raghavanp
13
raghavanp 2015.01.06 08:31  
Yes, I was talking about C++ iostream. Thanks for the information. May i know if there is any function that behaves similar to C++ "Set".  I want to hold data in a collection without duplicates.
Alain Verleyen
Moderator
31091
Alain Verleyen 2015.01.06 13:51  
raghavanp:
Yes, I was talking about C++ iostream. Thanks for the information. May i know if there is any function that behaves similar to C++ "Set".  I want to hold data in a collection without duplicates.
See mql5 Standard Library if you can find what you need.
To add comments, please log in or register