Quote Originally Posted by marcoesteves
I'm sorry Elysia, I'm confused xD. I'm writing this MP to not make a big confusiong to everyone who will read the thread.

I think this a very usefull example. When I finish it and/or understand these concepts I can come back to the original example (the bookstore).

However, i'm facing some problems. I don't really know what is the problem. Missunderstanding, lack of c++ concepts or both.

To print the "current" CD contentI don't need to create an addTrackFcn , isn't correct?

So, only after I figured out how to print the content of the trackinfo inside CD object without using accessors, I should focus on : "how to add a new track without using my previous method (which inspires you to create this example to me, to understand which is the correct way).
I don't like PMs for things like this because you are depriving the world of learning from your confusion.

Anyway, to correct your misunderstandings or help you on your way, I really need to see what you're struggling with. For example, what is your current attempt at the Print function? Why does it not work? Why have you implemented it the way you've done? Only by understanding how you think can I correct what is wrong.

To implement the code that prints the object, you don't need the AddTrack member function. In this you are correct. To compile the code, you need the AddTrack member function.

So yes, the idea was that you focused on creating an implementation for printing the object and only after you've finished that, should you focus on implement the AddTrack function. When you've implemented that, you can compile and run your code to ensure it's correct.