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 [2020/04/14 15:48] – [Μια πιο σύνθετη περίπτωση] gthanos | cpp:copy_constructors [2020/04/14 16:00] – [Μια πιο σύνθετη περίπτωση] gthanos | ||
---|---|---|---|
Line 270: | Line 270: | ||
int main() { | int main() { | ||
- | Point p{10,5}; | + | Point p{5,5}; |
Rectangle r1{5, | Rectangle r1{5, | ||
Rectangle r2 = r1; | Rectangle r2 = r1; | ||
+ | Rectangle r3(r1); | ||
| | ||
moveOrigin(r1, | moveOrigin(r1, |
cpp/copy_constructors.txt · Last modified: 2022/05/12 19:41 by gthanos