单链表基本操作(C++代码).pdfVIP

  • 4
  • 0
  • 约9.31千字
  • 约 10页
  • 2015-08-01 发布于河南
  • 举报
单链表基本操作(C++代码).pdf

C++单链表基本操作(代码) #include iostream #include stdlib.h #include assert.h using namespace std; // list node structure typedef struct _NODE{ int data; struct _NODE *next; }NODE, *PNODE; // create a list, return the pointer to the head node PNODE create() { PNODE head = NULL; PNODE current = NULL; PNODE temp = NULL; int data = 0; int cnt = 1; temp = new NODE; assert(temp != NULL); cout Please input numbers, end with 0 endl; cin data; temp-data = data;

文档评论(0)

1亿VIP精品文档

相关文档