![]() |
![]() مساحة اعلانات نصية ذهبية |
||
كوبونات خصم | اعلن هنا | اعلن هنا |
اعلن هنا | مساحة إعلانيه |
|
![]() |
|
أدوات الموضوع | انواع عرض الموضوع |
#1
|
|||
|
|||
![]()
<div>السلام عليكم انا عندي سؤال c++
وانا حليته لكن بضل يعطيني ايرور ومو عارفه اكمله للاخر لكن انا بعطيكم محاولاتي وارجوكم تساعدوني الماده هي هيكلة البيانات هذا السؤال Define a class Circle that has the data member radius and the functions • Constructor: take appositive number and set to the radius. • Get_radius: returns the value of the radius. • Set_radius: take a number and assign it to the radius. • Area: compute and return the circle area using the formula Area = radius * radius * 3.14 Define another class Cylinder that inherit class Circle and has the data members • height • diameter: 2 Base radius The member functions: • Constructor: take appositive number and set to the height, determine the diameter value. • Volume: compute and return the Cylinder volume by the formula Volume= Base Area * height • Area: compute the cylinder area by using the formula Area= 2 * Base Area = 3.14 * diameter * heights In the program.cs class create object of type Circle and another one of type Cylinder and test their functionality وهذه هي محاولاتي هذا ال header كود: class cir { private : double r; public: cir (); void computearea ( double ); void set_raduis(double); void get raduis(double&)const; void printarea (); }; وهذا implimentation <div style="margin:20px; margin-top:5px"> كود: void cir::set_raduis(double raduis ) { cin>>"please enter the raduis"; if ( raduis >=0) raduis =r; else r = 0; } void cir::get_raduis(double& raduis) { raduis = r; } void cir: ![]() { if (r>=0) cout |
![]() |
|
|
![]() |
||||
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
ممكن تساعدوني | اشراق العالمrss | اشراق شامل - منوعات | 0 | 12-04-2012 07:40 PM |
ممكن تساعدوني | اشراق العالمrss | اشراق شامل - منوعات | 0 | 11-15-2012 03:31 AM |
ممكن تساعدونى | eshrag.net | المنتدى العام - مواضيع عامة | 0 | 08-04-2010 02:30 PM |
ممكن تساعدوني | eshrag.net | المنتدى العام - مواضيع عامة | 0 | 07-09-2010 01:01 PM |
ممكن تساعدونى بالامر ده | مبرمج | اشراق شامل - منوعات | 0 | 03-20-2009 08:30 AM |
![]() |
|
راسلنا الآن لشراء روابط نصية باك لينك وجيست بوست | خدمات الباك لينك والروابط النصية |
![]() |
||||
اشتراك يوتيوب بريميوم | اشتراك تطبيقات بلس | اشتراك IPTV شهر | يوتيوب بريميوم | عسل النحل |
![]() |
||||
دراما كافيه | دراما صح | اهواك Tv | فوستا | شبكتي Tv |
![]() |
|||||
كورة لايف | koora live | مباريات اليوم بث مباشر | kora 360 | koora4live | كورة لايف |
koora live | مباريات اليوم بث مباشر | kora 360 | koora4live | kooralive | مساحة إعلانيه |
![]() |
||
متجر الرياض | شحن شدات ببجي | شحن شدات ببجي |
![]() |
|||||||||
عزل اسطح | كشف تسربات المياه | عزل فوم بالرياض | شركة عزل اسطح | كشف تسربات المياه بالرياض | عزل اسطح بجدة | شركة كشف تسربات المياه | نقل اثاث بالرياض | شراء اثاث مستعمل بالرياض | شركة تنظيف بالرياض |
![]() |
|||||||
خصومات | هدايا وكوبونات | توفير المال | مال واستثمار | صفقات وتسوق | عروض اسواق السعودية | تحسين مالي | كوبونات |
![]() |
||||
يلا شوت | يلا شوت | يلا لايف | yalla shoot | يلا شوت |
![]() |
|||||||
كورة جول | يلا لايف | دوت سبورت | bein match | yalla shoot | yalla shoot | koora live | koora live |
يلا شوت | koora4live | سوريا لايف | تابع لايف | كورة لايف | كورة جول | كورة لايف | koora live |
![]() |
||||
كورة لايف | Koora live | يلا شوت | Yalla shoot | يلا شوت |
![]() |
||||
تقييم شركة exness | تقييم شركة binance | تقييم شركة avatrade | تقييم شركة evest | افضل شركات التداول |