Kibor Bot Autoclicker » Kibor - Integrated development environment for bots » About Kibor » Version 5.58 Initialization of data created by arrays.

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

1. Kibor - 27 Июля, 2019 - 12:39:28 - перейти к сообщению
initialarray allows you to fill an array with the same data.
An example is zeroing an array.

Example:

CODE:
int a[900];
initialarray(#a[0], 125);


The first parameter is a pointer to an array, the second is the data that fills the array.
It is allowed to specify the beginning of the array only 0 index, that is, to fill it from the beginning.

An example of filling a two-dimensional array. The rest is similar.
CODE:
int a[900][20];
initialarray(#a[0][0], 125);


For char it is allowed to specify both a fill character in 'A' and a numeric code.

CODE:
char a[900];
initialarray(#a[0], 'A');

CODE:
char a[900];
initialarray(#a[0], 65);


Filling string
CODE:
string a[900];
initialarray(#a[0], "Бла бла");


CODE:
string a[900];
initialarray(#a[0], "");

Powered by ExBB FM 1.0 Final