declare array with two data types string and double

Code in mql5:

struct string_double
{
string str_val;
double dbl_val;
}

string_double MyArray[SIZE];

//....

MyArray[0].str_val = "Hello, I'm string :)";
MyArray[0].dbl_val = 1;

No comments:

Post a Comment