Romal001: A smart person who understands this would have answered the question. They would not say it was an unintelligent question because of a lack of knowledge and information. (Simply put, we are good at pouring things into empty space) Peace.
That's how you overflow. Whatever the question, that's the answer.
int tmp=n;
int a=MathMod(tmp,3);
tmp=(tmp-a)/3;
int b=MathMod(tmp,3);
tmp=(tmp-b)/3;
int c=MathMod(tmp,2);
tmp=(tmp-c)/2;
int d=tmp;
In my opinion, it is simpler like this
//+-------------------------------------------------------+//| Перебор PROBA.mq4|//+-------------------------------------------------------+#property strict//+-------------------------------------------------------+//| Программа скрипта |//+-------------------------------------------------------+voidOnStart()
{
Alert("Номер A B C D"); // Нижний заголовок
int n=0; // Счетчикfor (int D=16; D<=48; D+=4) // D меняется от 16 до 48 шаг 4for (int C=0; C<=1; C++) // Для каждого значения D меняется C от 0 до 1 шаг 1for (int B=1; B<=3; B++ ) // Для каждого значения C меняется B от 1 до 3 шаг 1for (int A=2; A<=6; A+=2, n++)// Для каждого знач-я B меняется A от 2 до 6 шаг 1Alert(" ", n, " ",A, " ",B, " ",C, " ",D); // Разделил пробелами. Можно точнее выровнить
Alert("Номер A B C D"); // Верхний заголовок
}
Alert outputs immediately to the screen. This is the end of the table.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
A smart person who understands this would have answered the question. They would not say it was an unintelligent question because of a lack of knowledge and information. (Simply put, we are good at pouring things into empty space) Peace.
That's how you overflow. Whatever the question, that's the answer.
Please tell me what to do in this situation:
a=8; c=7; // ?????
It is only useful for everyone to answer.
That's how you overflow. Whatever the question, that's the answer.
Please tell me what to do in this situation:
a=8; c=7; // ?????
Just a useful answer for everyone.
May I answer, please!
In your case you could replace a=7; c=8.
I assure you it will be 100 times better. You could also enter a variable "c" , and set it to c=7.5;
Note how much I have given a quality and useful answer)
That's how you overflow. Whatever the question, that's the answer.
Please tell me what to do in this situation:
a=8; c=7; // ?????
Only useful for everyone to answer.
I kept asking about this caddy, what can I add, what can I change, the answer wassalt, pepper. You could also add sauce of some kind.
You can alsoread here- a lot of useful stuff.
I asked about this caddy, what can be added and what can be changed, the answer was toadd salt and pepper. You could also add sauce of some kind.
You can alsoread a lot of useful informationhere.
There are no words, or rather there are, but very few, and most of them are uncensored, so I decided not to use them.
I was asking about this caddy and the answer wassalt and pepper. You could also add sauce of some kind.
You can alsoread here- a lot of useful information.
There are no words, or rather there are, but very few, and most of them are uncensored, so I decided not to use them.
Thank you for your time and attention) It was nice to talk to "the best of the best minds" on this forum. The matter is closed.
Trollers:) A better suggestion would be to get the prices in a loop. Accordingly, store them in arrays.
You could also advise wrapping everything up in a class. You can give a lot of advice without knowing what the questioner needs.
int tmp=n; int a=MathMod(tmp,3); tmp=(tmp-a)/3; int b=MathMod(tmp,3); tmp=(tmp-b)/3; int c=MathMod(tmp,2); tmp=(tmp-c)/2; int d=tmp;In my opinion, it is simpler like this