I am not sure what I am attempting to do is possible however there might be a trick to make it work. I am trying to call a recursive function from within a class function and I do not know how to set the first argument to the class. For example:
Class A{
public:
A();
~A();
void B();
}
void A::B(){
C( ****This is where I am unsure);
}
void C(A name){
}
Thank you in advance for your help.
It seems you want to pass copy of the current object to the method, so:
thisis a special pointer which gets implicitly passed to every member function and points to the object itself. So you just need to dereferencethis.