21 5月 2021
赤い伝票?それをグリーンに変えます。 利益はまずあなたの銀行カードへ — 分配は後で行います。 前払い不要、アカウント権限も不要。 🟢 WhatsApp:85254981192 ⚪ Telegram:@kkk437
21 5月 2021



struct complex { double real; // Real part double imag; // Imaginary part };The "complex" type can be passed by value as a parameter for MQL5 functions (in contrast to ordinary structures, which are only passed by reference). For functions imported from DLLs, the "complex" type must be passed only by reference.
complex square(complex c)
{
return(c*c);
}
void OnStart()
{
Print(square(1+2i)); // A constant is passed as a parameter
}
// "(-3,4)" will be output, which is a string representation of the complex number Only simple operations are currently available for complex numbers: =, +, -, *, /, +=, -=, *=, /=, ==,!=.