Ok, heres my problem.
i have a structure here it is:
struct route
{
char cityCode1[3];
char cityCode2[3];
char cityCode3[3];
char cityCode4[3];
char cityCode5[3];
char cityCode6[3];
char cityCode7[3];
};
route truckRoute;
int index = 1;
now, i'm assigning values( 3 letter chars) to the variables.. i want to be able to increment the variable names # (ex. cityCode1 to cityCode2) when I do a cin>>, would this be accomplished by the following set of code? or Could someone help me to determine the correct procedure
cin >>cityCode
cityCode = truckRoute.citycode<<index
index++
Andrew Wilmut