Class Composition problems

Hello guys.

I'm tryng to learn how to implement c++, and at same time learning OOD.

I'm tryng to implement the following Class Diagram.
https://dl.dropboxusercontent.com/u/710615/class%20diagramV3.png

Diamond is the name of the store.

I know that a musicCD "has a" Song . However, I'm not figuring out the best way to implement this kind of relationship at this context.
I hope that you can help me.
There is my source code:

https://dl.dropboxusercontent.com/u/710615/newDiamanteProject_v3.zip
to resolve your include circularity http://www.cplusplus.com/forum/articles/10627/


> I know that a musicCD "has a" Song .
> However, I'm not figuring out the best way to implement this kind of relationship at this context.
1
2
3
4
class musicCD{
private:
   std::vector<Song> foo;
};



PS: you may use github or bitbucket for version purposes.
Topic archived. No new replies allowed.