I'm new to C++ and having some trouble getting my mind wrapped around the whole pointers and references thing.
I need to be able to call a function that loads data from a file into an array of pointers to type char. (I think I'm describing that correctly -- it's an array of c-style strings.) What is the correct way to declare the array in the calling function, and how do I pass it as a parameter to the function that loads the data?
The function that loads the data declares it as char**, and the debugger shows this to be working fine.
I've tried declaring it as "char** recs" in the calling function, and then passing it as just "recs":
f.GetData ( recs );
but the caller is getting back 0.
I doubt that this is difficult for someone with C++ experience, but I'd really like some help soon, so I'm assigning the max points.