مين عنده الحل مال بربلم 4 Structs الى عن الاقمار
struct planet_type {
string name;
int nummoons;
string Moonnames[50];
long dists[50];
};
void Min_Dist(const planet_type x) {
int min=1;
for(i=0;i<nummoons;i++) {
if(x.dists[i]<x.dists[min]) min=i;
}
cout<<"the closest moon to the planet "<<x.name<<"is :"<<x.Moonnames[min]<<endl;
}
struct Solarsystem_type {
Planet_type planets [100];
};
Solarsystem_type systemx;
for( int i=0;i<100;i++){
cout<<systemx.planets[i].name<<endl;
}

[IMGL]http://store1.up-00.com/Oct10/ysD94437.jpg[/IMGL]
[IMGL]http://store1.up-00.com/Oct10/myB94437.jpg[/IMGL]
[IMGL]http://store1.up-00.com/Oct10/Iq594437.jpg[/IMGL]
[IMGL]http://files03.arb-up.com/i/00306/h9u9kld09zxw.jpg[/IMGL]
[IMGL]http://store1.up-00.com/Oct10/rcL95414.jpg[/IMGL]
![]()
[IMGL]http://store1.up-00.com/Oct10/cS408854.jpg[/IMGL]
[IMGL] http://store1.up-00.com/Oct10/esf08320.jpg[/IMGL]
[IMGL]http://store1.up-00.com/Oct10/NcT09600.jpg[/IMGL]
[IMGL]http://store1.up-00.com/Oct10/q3i09600.jpg[/IMGL]
[IMGL]http://store1.up-00.com/Oct10/FRf09601.jpg[/IMGL]
محاضره اليوم
[IMGL]https://www.uob-bh.com/upload/up_live/12881780261.jpg[/IMGL]
[IMGL]https://www.uob-bh.com/upload/up_live/12881780272.jpg[/IMGL]
[IMGL]https://www.uob-bh.com/upload/up_live/12881780273.jpg[/IMGL]
[IMGL]https://www.uob-bh.com/upload/up_live/12881780274.jpg[/IMGL]
[IMGL]https://www.uob-bh.com/upload/up_live/12881780275.jpg[/IMGL]
[IMGL]https://www.uob-bh.com/upload/up_live/12881782021.jpg[/IMGL]
[IMGL]https://www.uob-bh.com/upload/up_live/12886942471.jpg[/IMGL]
دي لو الثانيه اللي فيها الoutput?
:mellow:
هذي ورقة السؤال ...
http://img840.imageshack.us/img840/1947/picture001fe.jpg
وهذا الحل ...
http://img253.imageshack.us/img253/3264/picture002rt.jpg
http://img703.imageshack.us/img703/79/picture003a.jpg
بس فيه خطئين عندي لان كتبتهم بسرعة ...
أول ورقة ... تعريف الستركجر ... آخر شي نسيت أحط ( ; )
وثاني ورقة ... تعريف الستركجر ... آخر شي نسيت القوس والفاصلة ( ;{ )
وآخر الورقة ... نسيت اصك القوس مال الفنكشن
مسامحة ...
دعواتكم ...![]()
سلااام عليكم
سكشن 11
ام دبليو صبح ساعة 8
مع ميادة عن الهوم اسايمنت انا كلش كلش ما ينفتح عندي
ويطلع ايروور ويسكر الوندو ؟؟
ليش؟؟

السلام
لو سمحتون عندي سؤال في الclass
في شنو نستخدم set function & get function?
الست فنكشن عشان ادخلين المعلومات
و القت عشان اطلعين المعلومات فاذا ما عندش فنكشن للطباعة تسوين cout الى الأوبجكت دوت القت فنكشن