/************************************************************************** parameters: Painting * return value: - Copy constructor. Preforms a deep copy on a Painting. Appends "_COPY" to the title to denote that it is a copy. **************************************************************************/ Painting::Painting(Painting& p) { ostringstream convert; Painting::creationCounter = Painting::creationCounter + 1; height = p.getHeight(); width = p.getWidth(); id = Painting::creationCounter; convert << Painting::creationCounter; title = p.getTitle() + "_COPY" + convert.str(); next = NULL; }