User Tools

Site Tools


cpp:copy_constructors

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
cpp:copy_constructors [2020/04/14 15:24] gthanoscpp:copy_constructors [2020/04/14 15:26] – [Ορισμός ενός κατασκευαστή αντιγραφέα] gthanos
Line 122: Line 122:
  
 Rectangle::Rectangle(Rectangle& r) { Rectangle::Rectangle(Rectangle& r) {
-  cout << Calling copy constructor" << endl;+  cout << "Calling copy constructor" << endl;
   width = r.width;   width = r.width;
   height = r.height;   height = r.height;
cpp/copy_constructors.txt · Last modified: 2022/05/12 19:41 by gthanos