A is private
Class variables are private by default, you need to put public: before the fields that you want to make accessible from outside of the class.
Ia m using friend function
Not sure if it works with class functions, you can try to make the class as a friend just to test it.
Still not working
What error does it give in this case?
Обсуждают сегодня