#include <stdio.h>
#include <malloc.h>
#define NULL 0
#define LEN sizeof(struct L)
struct L
{
int num;
int key;
struct L *next;
};
int n,k;
int i=0;
ERROR()
{
printf("ERROR!\n");
printf("所用的密码必须还正整数而且m>0 N>0!!!\n");
}
struct L *creat(int N)//建立动态循环链表(坐成一圈).
{
struct L *head;
struct L *p1,*p2;
n=0;
p1=p2=(struct L *)malloc(LEN);
printf(" 请输入每个人手里的密码:");
scanf("%d",&p1->key);
k=p1->key;
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余3页未读,立即下载