Hello everyone;
I have a program with a number of constant arrays defined in the header file.
array1[10] = { .. };
array2[13] = { .. };
When I use the code:
do {
PrintString(listbase, array1[i]);
i++;
} while(array1[i+1] != NULL);
PrintString() is a function I created in to print the info to the screen in OpenGL and listbase is related to the font. But when it prints it will also print array2[]. So my question is is how can I get my array to print without using a for loop so I can go back and play with my arrays without having to change too much code?