www.gusucode.com > VC++双链表数据结构源代码源码程序 > VC++双链表数据结构源代码源码程序/code/LinkListTest.cpp

    // LinkListTest.cpp : Defines the entry point for the console application.
// Download by http://www.NewXing.com

#include "stdafx.h"


#include <string.h>
#include <iostream.h>
#include "LinkList.h"

int main(void)
{
	LinkList_T l;
#if 0
	l.init();
#endif

#if 1
	l.prepend("1");
	l.prepend("2");
	l.prepend("3");
#endif

#if 1
	l.append("4");
	l.append("5");
#endif 

	for(int i=0; i<5; i++)
	{
		cout<<i<<" is "<<l.contents(i)<<endl;
	}
	
  return 0;
}