This is not supposed to be my homework still why are you giving me answers in round about manner?

can anybody else help me out?and write a copy constructor which does the job?