So I'm working on a program and I want to fill up anywhere from 1-6 arrays based on the user's desire. My thought is to prompt the user for how many arrays they want to fill then call a foor loop for that many iterations. Inside the for loop I plan to have a function that prompts the user to input the data then stores it to an array. The problem I've run into is that I don't know how to get the function inside the for loop to use a different array each iteration. Is there a way in C++ to use to looping variable (i?) to determine which array to call?
For instance if the arrays were named array1[] array2[] array3[].... could I do something like function("array"i[]).