Курсовая работа: Розробка програм мовою С++
Cur->pLink = new Node;
Cur = Cur->pLink;
n++;
} while(Prev->Info != 0);
Prev->pLink = NULL;
delete Cur;
n--;
Cur = Start;
while(Cur->pLink != NULL)
{
Prev=Cur;
Cur=Cur->pLink;
}
if(Start==Cur) Start = NULL;
else
{
Prev->pLink=NULL;
delete Cur;
}
}
void vuvid(Node *Start)
{
if(Start != NULL)
{
cout << "\n\nVvedenuj spusok:\n";
Cur = Start;
while(Cur != NULL)
{
cout << Cur->Info << " ";