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}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started