0
What is the error in this please help:: topic --> this pointer
12 Answers
+ 6
(*this) is the address of the current object
"return this; "would not return a variable.
+ 3
try string over the char pointer
so you do not need strcpy()
make a name variable for your class.
+ 2
ok I noticed you tried using return to set values to an object.
there are many errors
- sorry it is too much for me to fix
+ 2
Lets start over.
+ 2
could you post the code please.
I was thinking that method needed to removed and rewritten.
- as long as it works
+ 1
This is a problem
person & greater( person &x)
{
if(x.age>age)
return x;
else
return this;
}
few others too
0
what in this?
this is exactly same as i wrote
0
how
0
ohh yess thankx
0
person & greater( )
wy we write tis đđ
0
*when
0
no there is just one error of *this
now code is executing properlyđ