#include "iostream。h"
struct student
{
private:
int num;
char *name;
int math,english,Cworlds,all;
public:
void set_info(int Num,char *Name);
void set_chengji(int Math,int English,int C);
int allscore();
void display();
};
void student::set_info(int Num,char *Name)
{
num=Num;
name=Name;
}
void student::set_chengji(int Math,int English,int C)
{
this->math=Math;
this->english=English;
this->Cworlds=C;
}
void student::display()
{
cout>x;
cout>y;
}
zuobiao & zuobiao::set_mid(zuobiao &a)
{
x=(x a。
x)/2;
y=(y a。
y)/2;
return *this;
}
double zuobiao::set_long()
{
double how_long=sqrt(x*x y*y);
return how_long;
}
ostream & operator next!=NULL)
{
coutnext->work_numnext->gongz;
coutnext;
}
}
void creat(int n)
{
node *L;
L=new node;
L->next=NULL;
for(int i=0;i>s->work_num;
cout>s->gongz;
coutnext=L->next;
L->next=s;
}
list(L);
}
void main()
{
int n;
cout>n;
creat(n);
}。
全部