Курсовая работа: Динамические структуры данных
int numPar;
char** pParams;
bool bFilled;
tStack* pNext;
tStack ()
{
pNext = NULL;
numPar = 0;
bFilled = false;
}
void Add (char* strFName_, char* strRValue_, int numPar_, char** pParams_);
void Delete ();
void Print (TMemo* memo);
void Free ();
};
tStack* temp;
int num = 0;
int max_num = 1000;
void tStack:: Add (char* strFName_, char* strRValue_, int numPar_, char** pParams_)
{
if (num == (max_num-1)) MessageBox ("Almost Overload", "Warning ", MB_OK);
if (num == max_num)
{
MessageBox ("Overload", "", "Error", MB_OK);
}
num++;
if (pNext)
pNext->Add (strFName_, strRValue_, numPar_, pParams_);
else