cpp:copy_constructors
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
cpp:copy_constructors [2018/05/07 07:06] – [Ορισμός ενός κατασκευαστή αντιγραφέα] gthanos | cpp:copy_constructors [2018/05/07 07:07] – [Κατασκευαστές Αντιγραφείς] gthanos | ||
---|---|---|---|
Line 8: | Line 8: | ||
#include " | #include " | ||
- | void printArea(Rectangle r) { | + | void printArea(const Rectangle r) { |
cout << " area: " << r.getArea() << endl; | cout << " area: " << r.getArea() << endl; | ||
} | } |
cpp/copy_constructors.txt · Last modified: 2022/05/12 19:41 by gthanos