Hi
I have a question about processing…..
I have a code made in c++ and I get some typedef struct, as you can see at next:
typedef struct {
int x;
int y;
} cityType;
typedef struct {
int curCity;
int nextCity;
unsigned char tabu[MAX_CITIES];
int pathIndex;
unsigned char path[MAX_CITIES];
double tourLength;
} antType;
How can I do this but using this time processing and including the following lines:
cities[from].x = getRand( MAX_DISTANCE );
cities[from].y = getRand( MAX_DISTANCE );
Thanks