Hello,
today I learnt this:
class A {
int* _value;
public:
A (int value) : _value (new int(value)) {}
~A() { delete _value; }
void redouble () const { *_value *= 2; } // const method can modified the value pointed by _value
};
class A {
int* _value;
public:
A (int value) : _value (new int(value)) {}
~A() { delete _value; }
void redouble () const { *_value *= 2; } // const method can modified the value pointed by _value
};
To copy to clipboard, switch view to plain text mode
And it isn't what I want: is there a way treat this thing, please
Bookmarks