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

                        student::l_last=this;

                        this->next=NULL;

                        this->priv=NULL;

            }

            else

            {                      student* curr=student::l_first;

                                    while (curr)

                                    {          int a=strcmp(curr->surname,this->surname);

                                                int b=strcmp(curr->name,this->name);

                                                int c=strcmp(curr->sec_name,this->sec_name);

                                                if ((a>0)||((a==0)&&(b>0))||(a==0)&&(b==0)&&(c>0))

                                                {          //enter element before curr_ent

                                                            if (student::l_first==curr)

                                                            { //begin of the list, before the first in the list

                                                                        this->next=curr;

                                                                        curr->priv=this;

                                                                        this->priv=NULL;

                                                                        student::l_first=this;

                                                                        break;

                                                            }

                                                            else

                                                            {          this->next=curr;

                                                                        this->priv=curr->priv;

                                                                        curr->priv->next=this;

                                                                        curr->priv=this;

                                                                        break;

                                                            }