Hello..
i'd like to make class func that i could use it with lvalue
i know that lvalue has a connection with putting the a value inside an adrs:Code:class foo
{
int x;
public:
foo();
void set_x();
}
foo::foo()
{
x=0;
}
void foo::set_x()
{
...
... //have no idea what to do
}
int main(){
foo.set_x()=1;
return 0;
}
int b=0;
int *a=&b
a=1 -> b=1.
but how could i do it with class
p.s.
thnx in advance