Контрольная работа: Реалізація двохзв’язного списка
{
S_Spisok *Temp = new S_Spisok;
strcpy_s (Temp->SName, Name);
for (int c=0; c<dd; c++) Temp->SDate[c] = D[c];
Temp->SCount = Count;
Temp->Next = NULL;
Temp->Next_K = NULL;
if(Lost)
{
Lost->Next = Temp;
Lost = Temp;
}
else
{
First = Temp;
Lost = Temp;
};
if (Count < K)
{
if (Lost_K)
{
Lost_K->Next_K = Temp;
Lost_K = Temp;
}
else
{
First_K = Temp;
Lost_K = Temp;
};