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/08 14:51] – [Μια πιο σύνθετη περίπτωση] gthanos | cpp:copy_constructors [2020/04/12 16:02] – gthanos | ||
---|---|---|---|
Line 6: | Line 6: | ||
#include < | #include < | ||
using namespace std; | using namespace std; | ||
- | #include " | + | #include " |
void printArea(const Rectangle r) { | void printArea(const Rectangle r) { | ||
Line 97: | Line 97: | ||
<code cpp CopyRectangle.cpp> | <code cpp CopyRectangle.cpp> | ||
- | #include " | + | #include " |
int main() { | int main() { | ||
Line 108: | Line 108: | ||
Το παραπάνω είναι λειτουργικά ισοδύναμο με το παρακάτω. | Το παραπάνω είναι λειτουργικά ισοδύναμο με το παρακάτω. | ||
<code cpp CopyRectangle.cpp> | <code cpp CopyRectangle.cpp> | ||
- | #include " | + | #include " |
int main() { | int main() { |
cpp/copy_constructors.txt · Last modified: 2022/05/12 19:41 by gthanos