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

                        curr->group[4]=curr->group[5];

                        curr->group[5]='\0';

                        b_group=atoi(curr->group);

                        b_group=b_group+10000*(year-curr->begin);

                        if (month<9) b_group-=1000;

                        itoa(b_group,curr->group,10);

                        curr->group[5]=curr->group[4];

                        curr->group[4]='/';

                        curr=curr->next;

            }

}

void student::display()

{

            cout<<"\nInformation about student:\n"<<endl;

            this->operator <<(cout);

            cout<<"End of record..."<<endl;

}

void student::display_all()

{          int i=1;

            student* list=student::l_first;

            system("cls");

            while (list!=NULL)

            {

                        cout<<'\n'<<i<<" record\n";

                        list->display();

                        list=list->next;

                        i++;

            }

}

void student::fdisplay_all(ofstream& stream)

{

            student* list=student::l_first;

            while (list!=NULL)

            {

                        list->operator <<(stream);

                        list=list->next;

                        if (list!=NULL) stream<<endl;

            }

}

void student::sort()

{

            if (this->priv!=NULL) (this->priv)->next=this->next;

            if (this->next!=NULL) (this->next)->priv=this->priv;

            if (student::l_first==this) student::l_first=this->next;

            if (student::l_last==this) student::l_last=this->priv;

            this->next=NULL;

            this->priv=NULL;

            if (student::l_first==NULL)

            {

                        student::l_first=this;