{ printf("\a\n\tWarning: Memory is full!\n"); break; } else { //info_input(&info); add(&L); printf("\n\nAdd succeefully! stu's num %u\n", L.length); printf("Continue?[y]\n"); fflush(stdin); ans = getchar( ); if (ans == '\n') { ans = 'y'; } system("cls"); } } break; } case 2: { int locate; while (ans == 'y') { printf("Please enter the node number you want to delete: "); scanf("%d", &locate); NodeDelete(&L, locate); printf("\a\n\n\t\tDelete Successfully\n"); printf("Continue?[y]"); fflush(stdin); ans = getchar( ); if (ans == '\n') { ans = 'y'; } system("cls"); } & |