cpp:constructors
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
cpp:constructors [2020/04/14 07:36] – gthanos | cpp:constructors [2020/04/14 07:40] – gthanos | ||
---|---|---|---|
Line 39: | Line 39: | ||
return 0; | return 0; | ||
} | } | ||
+ | </ | ||
+ | |||
+ | Για την μεταγλώττιση αρκεί να μεταγλωττισετε κάθε επιμέρους κλάση ξεχωριστά και στη συνέχεια να δημιουργήσετε το τελικό εκτελέσιμο. Στο συγκεκριμένο παράδειγμα, | ||
+ | < | ||
+ | g++ -Wall -g Rectangle.cpp -c | ||
+ | g++ -Wall -g Rectangle.o RectangleUsage.cpp | ||
</ | </ | ||
cpp/constructors.txt · Last modified: 2021/05/07 06:11 (external edit)