Exemplo n.º 1
0
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;
}
Exemplo n.º 2
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();
	}
}
Exemplo n.º 3
0
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 ();
	}
}