#include <iostream.h>
struct NODE
{
int data;
NODE *next;
};
NODE *head = NULL;
int data[6] = {25,41,17,98,5,67};
void InsertList(NODE **head, int aData, int bData);
void DeleteList(NODE **head, int aData);
void OutputList(NODE *head);
void main()
{
for (int i=0; i<6; i++)
InsertList(&head, data[0], data[i]);
OutputList(head);
DeleteList(&head, 98);
DeleteList(&head, 41);
OutputList(head);
}
请各位大侠指教啊
catspeake
相关分类