NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Groups
Pages
ex_ArrayBuild.nxc
This is an example of how to use the
ArrayBuild
function.
task main()
{
byte myArray[];
byte src1 = 0x45, src2 = 0x1f, srcN = 0x7a;
ArrayBuild
(myArray, src1, src2, srcN);
// myArray = {0x45, 0x1f, 0x7a};
int
abSample[];
int
s1[] = {0, 1, 2, 3};
int
s2 = 4, s3 = 5, s4 = 6, sN[] = {7, 8};
ArrayBuild
(abSample, s1, s2, s3, s4, sN);
// abSample = {0, 1, 2, 3, 4, 5, 6, 7, 8};
NumOut
(0,
LCD_LINE4
, myArray[2]);
NumOut
(0,
LCD_LINE5
, abSample[1]);
}
Generated by
1.8.2