C++单链表简单操作
#include <iostream>#include <stdio.h>using namespace std;typedef struct LNode{ int data; struct LNode* next;}LNode,*Linklist;// 头插法建立单链表void HeadInsert(Linklist &L){ int x; L = (Linklist)malloc(sizeof(L