I have been stuck on what to do with this for loop inside an istream operator, so firstly all variables and objects inside registration are private so i have to use temp variables to use for my set and gets in the class, my problem is being that the R.setResult[i] is an object of another class that is referenced through registration. i get an error when trying that line saying:
C3867 'Registration::setResult': non-standard syntax; use '&' to create a pointer to member
do i need a pointer in this loop?
any help would be madly appreciated.
Aucun commentaire:
Enregistrer un commentaire