C/C++ code#include
#include
#include
struct Touch
{
char name[20];
char corp[20]; //work
char phone[20];
char address[50];
struct Touch* next;
};
typedef struct Touch AddressInfo;
#define new newp
AddressInfo* Create()
{
int num, i;
AddressInfo* head, *p, *new;
head = (AddressInfo *)malloc(sizeof(AddressInfo));
if(!head)
{
printf("Fail to assign memory !\n");
exit(1);
}
new = p = head;
printf("Input the first person data :\n");
scanf("%s %s %s %s", head->name, head->corp, head->phone, head->address);
head->next = NULL;
printf("Input the number you want to save :\n");
scanf("%d", &num);
f