Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Arrays in RobotC (http://www.chiefdelphi.com/forums/showthread.php?t=87295)

The Zevling 27-10-2010 18:47

Arrays in RobotC
 
I'm working in robotC for our VEX robots, and I cannot figure out how to pass an array into a function.

When I try to declare the function as:
Code:

int Foo(int array[]);
I get several errors that sum up to mean that the code doesn't like square brackets inside function declarations.

Is there a way to pass arrays into functions, or will I have to find an alternate solution?

RoboDesigners 27-10-2010 21:49

Re: Arrays in RobotC
 
You might want to look at this thread on the RobotC forums. It seems that you can't pass arrays to functions, but that might have changed...


All times are GMT -5. The time now is 03:28.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi