I have been developing in c++ for about 6 months. So, by no means am I an expert. I have come across a problem where I need some sort of data structure to hold information in pairs - I think. I'm using Microsoft Visual C++. One of my problems is I have an object that is directly related to 1 other of the same object, but I would only like to show one object of the pair in a GUI. If that object is selected then somehow it triggers the object that is related to it and I remove both from my data strucuture.
Lets say I have 10 distinct objects in my data structure.
Then I would have 5 pairs or 5 objects that are related to another object in the data strucutre.
They are related by date or price.
Can anyone help me with a solution? I'm not sure if I'm making sense, lol.