Hi all,
I am having trouble in finding out how to point to a private member variable. E.g. :
#include <iostream>
using namespace std;
class Angry_Dude
{
private:
int health;
int attack;
}
I want to point to the address of health.
I know about the homework policy, and I assure you this is not any homework of any kind! Just a beginner trying to battle through the forests of programming.
Thanks in advance.