Operator Overloading Flashcards
1
Q
Örnek
A
Name class ımız var.
Name &Name::operator=(const Name &r)
{
len = r.len
delete[] pd;
pd = new char[len+1];
strcopy(pd,r.pd);
return *this
}
2
Q
t
A
C++ > Operator Overloading > Flashcards
Örnek
Name class ımız var.
Name &Name::operator=(const Name &r)
{
len = r.len
delete[] pd;
pd = new char[len+1];
strcopy(pd,r.pd);
return *this
}
t