6 Jul 2013 by Sergey Alexandrovich Kryukov
First big design mistake I can see is: remove all I/O from all class members, otherwise, what are you creating, a class which can only work with cin and cout, nothing else?[EDIT]As to your question: ptr1 does not have to be assigned to the same address, as it is assigned to a freshly...