Rustam Bikbulatov: Hi guys! Need your help again! Can you tell me how to make a sequence of numbers N() from 1 ? What to change int to make N() spin from void OpenBS() ?
Thank you very much!!! Can you tell me how else to zero out? For example, if there are orders then it is calculated. If there are no orders, it is zeroed.
Thank you very much!!! Can you tell me how else to zero out? For example, if there are orders then it is calculated. If there are no orders then it is zeroed
int N(constint r=0)
{
staticint n=0;
n = (r==0 ? n : r==1 ? n+1 : 0); // 0-просто возвращаем n, 1-прибавляем 1, в любом другом случае обнуляем/*
n = (r>0 ? n+1 : r<0 ? 0 : n); // 0-просто возвращаем n, больше 0 прибавляем 1, меньше 0 обнуляем
*/return n;
}
doesno history data say anything?
Thank you for your reply.
You seem to be told by the tester that there is no history data, press F2 and download the history, then reload the terminal
All done, thank you very much, it's working.
Hi guys! Need your help again! Can you tell me how to make a sequence of numbers N() from 1 ? What to change int to make N() spin from void OpenBS() ?
Maybe like this
How about this
Thank you very much!!! Can you tell me how else to zero out? For example, if there are orders then it is calculated. If there are no orders, it is zeroed.
Why does this method not work?Thank you very much!!! Can you tell me how else to zero out? For example, if there are orders then it is calculated. If there are no orders then it is zeroed
There is no calculation at all. It's zero. Thank you. (chuckles) I'll look into it.)
There is no calculation at all. It's zero. Thank you. (chuckles) I'll look into it.)
Well, you have to ask for it.
That's how you ask for it
but how do you do it in the form of ?
That's how you call it.
Just noticed that int works by itself regardless of the call to this function. Is it possible to replace it with void type?