The functionality you are looking for has already reached the classes in the stl collection , and without knowing that you are using the application, you will have to tell you about the weather whether you need a pointer or not.
The basic layout of your base container might be something like this.
class Album{
public:
void addPhoto(Photo p){
Photos.push_back(p);
}
private:
std::vector<Photo> Photos;
};
rerun source
share