Having some trouble with this. I know, basic stuff but i'm a noob and i really cant figure out what else to do. First off, here's the code:

Code:
void data_entry(struct rep_info *rep[], int *rep_number)
{
     int counter;             //counter for the loops
     char instring[32];       //just temp storage before a integer conversion
     
     printf("Enter the Representative's name:\n");
     gets(rep[rep_number]->rep_name);
The problem I'm having is the compiler reports this during compile:
Code:
49 D:\Code\Rep Average\0.04a.cpp invalid types `rep_info**[int*]' for array subscript
I'm using Dev C++ by bloodshed software btw, and only coding in ANSI C, dunno if thats important or not. the function is supposed to be passed an array and a number. The number is for the subscript indicating which Rep's info that is going to be entered. I'm trying to ask the user how many rep's information they'll be entering, and then creating an array based on that input, and passing the array onto the function data_entry. Data entry is called in a for loop until say 5 reps information is filled in. Then the loops breaks out and the program moves on. Any help with this would be much appreciated. I'm sorry if i didnt supply enough information, but i think that covers most of it.