首页 > 代码库 > 合并两个链表的问题

合并两个链表的问题

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <conio.h>

#define N 10

typedef struct Node
{
	int data;
	struct Node *next;
}Node, *pNode;

/*顺序插入法*/
void create_list_sequence(pNode *h)
{
	pNode p, q, r=NULL;
	p = q = *h = (pNode)calloc(1,sizeof(Node));
	p->next = NULL;
	int count = 0;
	while (count != N){
		++count;
		if (count == 1){
			p->data = http://www.mamicode.com/rand()%100;>