int main() { struct Node *Head=SetNodeList(); struct Node *pNode=DeleteNode(Head); #ifdef DEBUG if(Head->next != Head) printf("delete failure??\n"); #endif printf("\nlast number is %d\n",pNode->number); return 0; }
Model::Model(af::TElement& B) { Root = B.GetRoot(); if(B.GetName() == "New") { QString s; SetObjectName("Model_" + s.sprintf("%d", Root.Tag())); SetDescription("Model_" + s.sprintf("%d", Root.Tag())); SetNodeList(); SetParameterList(); } }
Scheme::Scheme(af::TElement& B) { Root = B.GetRoot(); if(B.GetName() == "New") { QString s; SetObjectName("Scheme_" + s.sprintf("%d", Root.Tag())); SetDescription("Scheme_" + s.sprintf("%d", Root.Tag())); SetDataList(); SetModelList(); SetOutVariableList(); SetImageList(); SetRunList(); SetPrintList(); SetNodeList(); SetIncludeList(); SetFragmentList(); SetEqvList (); } }