I am having trouble passing an array of records as a parameter in a function in C++.
I just have something like functionname(recarray[], blah, blah2); as the call and I get an error about the brackets, but if I don't have them it thinks I am trying to convert from recarray[someint] to recarray (a non array).
Do I have to pass each member of the record like: functionname (recarray[].member1, recarray[].member2, .. recarray[].membern, ) ?
I am missing something, some notation error or there's something I haven't learned about this yet... Probably something simple. I don't want to declare the array of records as a global variable.
I just have something like functionname(recarray[], blah, blah2); as the call and I get an error about the brackets, but if I don't have them it thinks I am trying to convert from recarray[someint] to recarray (a non array).
Do I have to pass each member of the record like: functionname (recarray[].member1, recarray[].member2, .. recarray[].membern, ) ?
I am missing something, some notation error or there's something I haven't learned about this yet... Probably something simple. I don't want to declare the array of records as a global variable.
