Ok, after using Thantos suggestion of using an array of structs I have managed to build my struct and populate it in simple manner using integers to index my array.
However, I need to index my array using the value of a string. Does anyone know how I might use an array of strings tied to my struct?
the first successful aspec I used with ints was like this:
Code:
struct mystruct
{
char id [11];
int station;
int wave;
}
mystruct mystructList [20];
strcpy(mystructList[wave].charid, someid);
mystructList[wave].station =1;
mystructList[wave].wave = 1;
when I use [wave] this represents the value between 0-19 that I want to address where my struct info will be added. The problem is... I need to load an array of strings and index the location of struct according to a specific string.