if (this->next!=NULL) (this->next)->priv=this->priv;
this->next=NULL;
this->priv=NULL;*/
this->sort();
}
student::~student()
{
//free(this->surname);
//delete [] this->surname;
//free(this->name);
//delete [] this->name;
//free(this->sec_name);
//delete [] this->sec_name;
//free(this->group);
//delete [] this->group;
//free(this->marks);
//delete [] this->marks;
free(this);
//delete [] this;
}
class student{
private: char* surname; //private info must be entered using the constructor
char* name;
char* sec_name;
int begin;
int end;
char* group;
int* marks;
public: student* priv;
student* next;
static student* l_first;
static student* l_last;
static int study_time;
double middle();
ifstream& operator >>(ifstream&);
ofstream& operator <<(ofstream&);
istream& operator >>(istream&);
ostream& operator <<(ostream&);
void sort();
void fired();
static void update();
void display();
static void display_all();
static void student::fdisplay_all(ofstream&);
student();
//update information
Уважаемый посетитель!
Чтобы распечатать файл, скачайте его (в формате Word).
Ссылка на скачивание - внизу страницы.