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

وهذا حلي..
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;
}
ومشكوريييين