dimanche 12 février 2017

error c3867 visual studio convert int class private variable to int

Vote count: 0

im trying to grab a int variable from a class that is linked to the one I'm in int year; year=p.dob.getYear; p is the person object passed to it it has a private variable Date of birth through that you can grab the getYear public memeber function in the Date.cpp file the getYear function should return back a year int i get this error when trying to do this error C3867: 'Date::getYear': non-standard syntax; use '&' to create a pointer to member error C2440: '=': cannot convert from 'int (__thiscall Date::* )(void)' to 'int' note: There is no context in which this conversion is possible I cannot think of how else to get the year int value to my current function so i hope i can

asked 41 secs ago

Let's block ads! (Why?)



error c3867 visual studio convert int class private variable to int

Aucun commentaire:

Enregistrer un commentaire