Here's the code. I'm reading in a menu from a .txt file. The "getdat" function is supposed to read in just text not numbers. any ideas? Show menu isn't needed in the picture just yet.
What do you want the function getdat to do vs getdata?
What output do you expect?
I think you want to have both getdat and getdata like:
1 2
void getdata(menuItemType menu[], int &i);
void getdat(menuItemType menu[], int &i);
So when you come back from getdat or getdata the value of i will have the number of elements in the array menu. Just remember if you call both the number i will get incremented twice.