How to modify the class Node such that the add_node() and del_node() functions are overloaded as the operators, + and -, respectively.
pls show the codes in detail with comments where necessary.
Thank You. =D
C++ programming question... about the class Node and function overloading?
i dont think that wud be called overloading, anyways just overload the + and - operators as normal and then call on add_node() and del_node() in those functions
Reply:operator +(classname object1)
{
add(object1);
}
is the way u sud take.
floral centerpieces
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment