Array of Structs question
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:
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. :confused:
char id ;
mystruct mystructList ;
mystructList[wave].wave = 1;