Ejemplo n.º 1
0
int main()
{
    LinkList l,la,lb,lc;
    l=CreateList(7);
    la=CreateList2(0); lb=CreateList2(0); lc=CreateList2(0);
    Output(l);
    Divide(l,la,lb,lc);

    return 0;
}
Ejemplo n.º 2
0
//-------------------------------------------------------------------
int COutputTabView::OnCreate(LPCREATESTRUCT lpCreateStruct) 
//-------------------------------------------------------------------
{
	
//Creates TabViewBar control
	if (COXSizeControlBar::OnCreate(lpCreateStruct) == -1)
		return -1;

	CRect rect;
	GetClientRect(&rect);
	

    Create3DTabCtrl();

	CreateEdit1();
	//PopulateEdit1();
	
	//CreateEdit2();
	//PopulateEdit2();
	
	
	//CreateList1();
	//PopulateList1();
	
	CreateList2();
	//PopulateList2();
		
	CreateList3();
	//PopulateList3();

	CreateList4();
	PopulateList4();

	CreateList5();
	
	

	CreateHistory1();
	PopulateHistory1();

	
	
		
	m_TabViewContainer.SetActivePageIndex(0);
	
	
	// Set callback function
	_finder.SetCallback(FileFinderProc, this);

	return 0;
}
Ejemplo n.º 3
0
 void main()
 {
   int n=5;
   LinkList La,Lb,Lc;
   printf("按非递减顺序, ");
   CreateList2(&La,n); /* 正位序输入n个元素的值 */
   printf("La="); /* 输出链表La的内容 */
   ListTraverse(La,print);
   printf("按非递增顺序, ");
   CreateList(&Lb,n); /* 逆位序输入n个元素的值 */
   printf("Lb="); /* 输出链表Lb的内容 */
   ListTraverse(Lb,print);
   MergeList(La,&Lb,&Lc); /* 按非递减顺序归并La和Lb,得到新表Lc */
   printf("Lc="); /* 输出链表Lc的内容 */
   ListTraverse(Lc,print);
 }