|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||||
|
|||||
|
Re: Arrays in Vex Programming Kit EasyC?
Yes, arrays will work in EasyC ver 1 without anything special - all you need to use are the "User Code" blocks. The following code should work for using a variable as an array.
Code:
#include "Main.h"
void main ( void )
{
int example_array;
int example_array[4];
example_array[0] = whatever you want;
example_array[1] = whatever you want;
example_array[2] = whatever you want;
example_array[3] = whatever you want;
}
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| vex programming kit | Alex Burman | FIRST Tech Challenge | 1 | 30-03-2006 18:30 |
| Pre-Load Arrays in EasyC, Possible? | Chris_Elston | Programming | 6 | 22-02-2006 10:25 |
| EasyC 2.0 for VEX Robotics Kit | jeffmorris | Programming | 7 | 26-01-2006 10:21 |
| Vex programming kit finally available?? | rswsmay | General Forum | 20 | 27-09-2005 22:08 |
| White Paper Discuss: VEX / intelitek easyC programming document | dez250 | Extra Discussion | 3 | 15-09-2005 15:20 |