#include
#include
#include
int main(void)
{
int uc;
char name1[50];
char name2[50];
char phone[13];
char email[50];
printf("\n1 - new Entry\n");
printf("\n2 - Old Entry\n");
printf("\n3 - Exit\n");
scanf("%d", &uc);
switch (uc){
case 1: goto entry; break;
case 2: goto old; break;
case 3: goto end; break;
}
return uc;
entry:
system("Cls");
printf("Full name:");
scanf("%s", name1);
scanf("%s", name2);
printf("Phone Number:");
scanf("%s", phone);
printf("Email Address:");
scanf("%s", email);
system("Cls");
printf(" %s%s \n", name1, name2);
printf(" %s \n", phone);
printf(" %s \n", email);
printf("=================\n");
printf("1 - Save\n");
printf("\n2 - Exit\n");
scanf("%d", &uc);
switch (uc){
case 1: goto save; break;
case 2: goto end; break;
}
return uc;
old:
system("Cls");
//I don't know how to save files yet so
// you need to fill this part in. If you kn
// ow how to save files please tell me BIGh
// aryMEN@hotmail.com
save:
system("Cls");
//I don't know how to save files yet so
// you need to fill this part in. If you kn
// ow how to save files please tell me BIGh
// aryMEN@hotmail.com
end:
system("Cls");
getchar();
return 0;
}