matr list del for int while ykaz del ykaz ykaz ykaz next delete del

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
~matr()
{
list *del;
for (int i=0; i<N; i++)
{
while (ykaz[i])
{
del=ykaz[i];
ykaz[i]=ykaz[i]->next;
delete del;
}
}
}