Posted by John Kugelman on March 20, 2001 at 23:11:51:
In Reply to: Re: problem with array template posted by Daniel Longest on March 20, 2001 at 22:46:59:
: I'm somewhat confused by exactly what you've done but if I assume you want something like you've tried, that would seem to show that bookArray is an array of pointers to books, in which case you could say (*bookArray[index]).getIsbn to call getIsbn (or you could say bookArray->[index].getIsbn).
I think what you meant is "bookArray [index]->.getIsbn".
From the original post I got the impression that the poster is storing pointers to his array template classes in the database class. If that's true (though I'm not sure why you'd want to do that), the syntax would be "(*bookArray) [index].getIsbn", assuming he had properly implemented the rest.
Post a Followup