예제 #1
0
파일: main.cpp 프로젝트: krugal/mywork
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;
}
예제 #2
0
파일: Model.cpp 프로젝트: laduga/pradis
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();
	}
}
예제 #3
0
파일: Scheme.cpp 프로젝트: laduga/pradis
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 ();
	}
}