Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 524

 
My kid's at the flamenco rink dancing. Is that okay?
 
tara:
My kid's at the flamenco rink dancing. Is that okay?

There's your superiority again! Nice! Your kid's doing ice dancing, and mine, I can't even tell you what they're doing. :(
 
Boris, you are right.
 
tara:
Boris, you are right.

Finally!!! I'm right! Thank you! And good night!
 
borilunad:

Finally!!! I'm right! Thank you! And good night!

Good night.
 
MEN_Odessa:

If you put one = instead of = in if() operator when checking equality condition (erroneously), no errors are produced at any stage (compilation, defective execution). Why?

It's quite normal. Now the compiler allows you to write expressions into the condition and compare the results of expression calculations.

  int k = 10;
  int j = 20;
  if ((k = (3 + j)) > (j = k)) k = j;
This is calculated first: (k =(3 + j)),

Then this: (j = k),

then it compares.

In your case there will be two possibilities. The logical result of the arithmetic can be TRUE or FALSE. If the arithmetic result is zero, it is FALSE. Otherwise it will be TRUE.

  int k = 10;
  int j = 20;

  if (j = k) k = j; // Так теперь тоже можно. Если результатом выражения (j = k) будет не ноль, то произойдёт присвоение k = j.
 
denis77515:

Lord programmers help here with this, I need the script opens simultaneously on all 7 pairs of orders. it opens three of the two in the Buy, one Sell, that is, to buy on the two pairs of one order and sell one order on the third pair. The functions double CountBuy() and double CountSell() if I write int, it gives a warning message possible loss of data due to type conversion why ? I think there is no such a loop in the OrderSendX function, I can't figure out where to put it.

Please insert code via the SRC button and with an easy-to-read tab!!! And delete your spoofing!

Then I'll delete your code pasted according to the rules!

And the first thing to do is to read the beginner's advice in this thread with the triangle:

Forum Navigator and Answers to Frequently Asked Questions. Highly recommended reading! ( 1 2 3 4 5 6 )5218.02.2011FAQ
 
Tell me please. Let's say there are 10 buy orders. How do I create an array through a loop? More specifically, two arrays so that one array contains (prices, marks) from the first to the fifth, and the second from the fifth to the tenth?
 
Zolotai:
Tell me please. Let's say there are 10 buy orders. How do I create an array through a loop? More specifically, two arrays so that one array contains (prices, marks) from the first to the fifth, and the second from the fifth to the tenth?
for (int i = 0; i < 10; i++)
 {
  if (i < 5)
   {
    ...
   }
  else
   {
    ...
   } 
 }
// Или так:
int i = 0
for (; i < 5; i++)
 {
  ...
 }
for (; i < 10; i++)
 {
  ...
 }
 
Is it possible to upload data from the terminal for processing in Excel?