Kibor Bot Autoclicker » Kibor - Integrated development environment for bots » About Kibor » Version 5.48 Initialization of arrays when they are declared

Страниц (1): [1]
 

1. Kibor - 19 Декабря, 2018 - 12:35:11 - перейти к сообщению
Now it is possible to assign values to arrays when they are declared.

CODE:
int a[2]={5, 7};

tantamount to
CODE:
int a[2];
a[0]=5;
a[1]=7;


The array is filled with 0 index.
Care must be taken that there is no overflow of the array.
You can not fill the entire array.


At the moment, only one-dimensional static array can be initialized this way.

Powered by ExBB FM 1.0 Final