Question: Basic c++: In this program, I've completed the implementation of code below where it's not commented, can anyone help me with operator overloading +,+=,=,!=,==? Note

Basic c++:

In this program, I've completed the implementation of code below where it's not commented, can anyone help me with operator overloading +,+=,=,!=,==? Note that the data stored in the Node is a pointer, so if we want to compare the two items we should use *(curr->data) instead of (curr->data).

ALL data passed in is sorted from smallest to biggest, whether it is class object/integer/string. If it's class object we assume its operater overload is completed so we can still directly use , =, ==, !=.

For example, list1 contains {0235} and list2 contains{19}, once we do ' list1 += list2 ' , list 1 should contain{012359}

Basic c++: In this program, I've completed the implementation of code below

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!