الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

سويت حل لكن طلع خطأ..ممكن تساعدوني

بدأه سلام11 في 30 مارس 2010 · 1 رد · 401 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم ورحمة الله وبركاته..

الله يعطيكم العافية هذا سؤال فقط المطلوب Part 3

267029334.png

وهذا حلي..

struct Date

{

int day;

int month;

int year;

};

***

struct Football

{

string opponent;

int g-scored;

int goals-received;

};

***

struct node

{

friend struct Football;

friend struct Date;

node *next;

};

****

node *Ppre = NULL;

node *Ploc = list.head;

int TotalPoints()

{

int point = 0;

while( Ploc != NULL )

{

if ( Ploc->Football.g-scored > Ploc->Football.g-received )

{ point = point+3; }

if ( Ploc->Football.g-scored == Ploc->Football.g-received )

{ point = point+1; }

if ( Ploc->Football.g-scored < Ploc->Football.g-received )

{ point = point+0; }

Ploc = Ploc->next;

}

return point;

}

floot avrscored(stack*sptr)

int sum =0;

int count =0;

float avreg ;

whil(!stack empty)}

sum=stack.top->fotball.g-scored;

sptr->popStack();

count=cunt++}

avreg= sum\count;

}

*int main()

{

Stack y;

(float avrscored(y);

return 0;

}

والهيد سويته برضو لكن طلع ايرور

#incluod<iustream>

( Ploc->Football.g-scored > Ploc->Football.g-received )

{ point = point+3; }

if ( Ploc->Football.g-scored == Ploc->Football.g-received )

{ point = point+1; }

if ( Ploc->Football.g-scored < Ploc->Football.g-received )

{ point = point+0; }

Ploc = Ploc->next;

}

return point;

}

ومشكوريييين

#2

مافيه أحد بيساعدني

والله بكره اختباري!!

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…