摘要:
看到笔试和面试里很多这样的题目,于是就练习一下,温故知新。#include #include using namespace std;typedef struct List{ int data; struct List *next;}listNode,*pList;void createList(pList & list) //头插入法建立单链表{ pList head=NULL; int data; cout>data; list=(struct List *)malloc(sizeof(listNode)); ... 阅读全文