some NXC beginner questions
Posted: 13 Oct 2010, 09:40
Hi,
Usaually I'm working with high-level-languages, therfore I run into some pitfalls when I start to work with NXC (BricxCC 3.3):
When I try to declare a multi-dim-array with initialization I get Errors: Variable name expected, ";" expected
When I try to create a function which returns an int array I get Errors: ";" expected, ";" expected, ";" expected
It would be great if someone could enlighten me
salute
Thomas
Usaually I'm working with high-level-languages, therfore I run into some pitfalls when I start to work with NXC (BricxCC 3.3):
When I try to declare a multi-dim-array with initialization I get Errors: Variable name expected, ";" expected
Code: Select all
int matrix[][] = {{1, 2, 3}, {4, 5, 6}};
Code: Select all
int foo[] (){
int bar[] = {1,2,3};
return bar;
}
salute
Thomas