#include "stdafx.h"
#include <stdlib.h>/*为了调用system("PAUSE");*/
#include <stdio.h>
#include <string.h>
#include <windows.h>
typedef struct Info
{
char name[15]; /*姓名*/
char city[10]; /*城市*/
char province[10]; /*省份*/
char state[10]; /*国家*/
char tel[11]; /*电话*/
};
typedef struct node
{
struct Info data;
struct node *next;
}Node, *link;
void Stringinput (char *t, int lens, char *notice)
{
char n[20];
do
{
printf("%s ", notice);
scanf("%s", n);
if(strlen(n)>lens)
{
printf("\n exceed the required length!\n");
}
}while(strlen(n)>lens);
strcpy(t,n);
}
void Enter(link l)
{
Node *p, *q;
q=l;
while(1)
{
p = (Node *)malloc(sizeof(Node));
if(!p)
{