|
إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...
انضم الينا
#1
| ||
| ||
<div>السلام عليكم اذا انفق الانسان مما يتعلم زاد علمه وثبت وافاد غيره ايضا <div style="margin:20px; margin-top:5px"> كود PHP: <div class="alt2"> <div dir="ltr" style="text-align:left;"> <span style="color: #000000">//: C06:Constructor1.cpp // From Thinking in C++, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 2000 // Copyright notice in Copyright.txt // Constructors & destructors #include using namespace std; class Tree { int height; public: Tree(int initialHeight); // Constructor ~Tree(); // Destructor void grow(int years); void printsize(); }; Tree::Tree(int initialHeight) { height = initialHeight; } Tree::~Tree() { cout <span style="color: #007700"> __DEFINE_LIKE_SHARE__ |
مواقع النشر (المفضلة) |
| |