linklisttest.cpp

来自「程序C++双链表算法代码」· C++ 代码 · 共 36 行

CPP
36
字号
// LinkListTest.cpp : Defines the entry point for the console application.
//

#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;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?