Курсовая работа: Динамические структуры данных
if (! bFilled)
{
strcpy (strFName, strFName_);
strcpy (strRValue, strRValue_);
numPar = numPar_;
pParams = new char* [numPar] ;
for (int i = 0; i < numPar; i++)
{
pParams [i] = new char [6] ;
strncpy (pParams [i], pParams_ [i],
6);
}
bFilled = true;
}
else
{
pNext = new tStack;
pNext->Add (strFName_, strRValue_, numPar_, pParams_);
}
}
}
void tStack:: Delete ()
{
if (pNext)
if (pNext->pNext)
pNext->Delete ();
else
{
delete [] pNext;