You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Check out the new article: From Basic to Intermediate: Operator Overloading (VI).
Thanks to what we did in the previous article, we already have mechanisms for adding elements to and reading elements from a linked list. However, what has been implemented there is NOT ENOUGH to produce a fully functional list. First, because we don't yet have a mechanism for deleting elements. Second, when we read the list, it is destroyed, and we need to fix that. Third, we cannot access its elements randomly, since this mechanism has not yet been implemented.
Regarding this third point, the article “From Basic to Intermediate: Operator Overloading (IV)” explained a small detail that needs to be taken into account. However, there is a way to get around this minor inconvenience. To do this, we'll use a different technique, although it doesn't quite work the way you might imagine. Remember that everything explained in the article mentioned above still applies. Nevertheless, we can organize the code in such a way as to implement this third point.
All right, then let's start with the simplest thing and gradually move on to more complex topics. Since the second and third points are closely related, in a sense they can be viewed as a single task. Although, in reality, it's not even a challenge, and you'll soon see why. This will be a little easier to understand than the part about the deletion of list elements through operator overloading.
Author: CODE X