I encountered that eror in the following function. Does anyone have an idea what it means?
template <class T>
void printAll(Array <T> &A){
for(int i=0; i<31; i++){
A.M[i].printObj; ///// ERROR
std::cout<<std::endl;
}
}
The function should print all my objects. .printObj
works because I tested it in the class print function. Thank you, and for any more details I may have forgotten please ask.
The parameters to the call are missing. Probably, you meant something like
A.M[i].printObj();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.