Ok I have my structure defined in my main function.
And the I need to send an array of structures to a function as follows:
int fillStruct (ifstream& fin, ROPES ropes[MAXROPES], int n)
int main()
{
struct ROPES
{
members
};
return0;
}
int fillStructs (ifstream& fin, ROPES ropes[MAXROPES], int n)
The problem is when I put the ROPES ropes[MAXROPES] in the prototype of the function, it says ROPES is not defined. do I have to define the structure globally? and if so do I have to define all it's members globally? Should I be sending the members to the function as well?