Download MetaTrader 5

How to declare array with two data types string and double

To add comments, please log in or register
Dakhr
5
Dakhr  
Question like in topic title
hasayama
616
hasayama  
Dakhr:
Question like in topic title
struct string_double
{
   string str_val;
   double dbl_val;
}

string_double MyArray[SIZE];

//....

MyArray[0].str_val = "Hello, you are my #";
MyArray[0].dbl_val = 1;

To add comments, please log in or register