View Single Post
  #1   Spotlight this post!  
Unread 27-10-2010, 18:47
The Zevling's Avatar
The Zevling The Zevling is offline
Modern Major General
AKA: Jonathan Zev
FRC #0599 (Robodox)
Team Role: Scout
 
Join Date: May 2009
Rookie Year: 2008
Location: Granada Hills, CA
Posts: 42
The Zevling is an unknown quantity at this point
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?
__________________
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would've appeared to them to be otherwise." - Alice in Wonderland

"Outside a dog, a book is man's best friend. Inside a dog, it's too dark to read." - Groucho Marx

"A man should live forever, or die trying." - Callahan's Crosstime Saloon

"[a] good bookshop is just a genteel blackhole that knows how to read." - Terry Pratchet