Классы, их инициализация с помощью конструктора и инициализатора, перегрузка, страница 7

            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;

}

4.2.7.  student_discription.h

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