0
Run program many time
This is a C program that represents a To Do list it has for choices: Add task remove task view tasks exit I want list to keep showing until user chooses to exit the program Example: user chooses to add tasks, then he write 3 tasks and when he finishes the choices "add, remove, view, exit" show again until he decides to exit How can do that? https://code.sololearn.com/cjNy5clayR19/?ref=app
2 Antworten
+ 1
You missed to add label task_list : at line 23
Also add function prototypes...
+ 1
try this for input :-
case 1:
printf("Enter task: ");
scanf("%s",task_list[i]);
printf("%s\n", task_list[i]);
printf("Task added!\n\n");
if(i<NUMBER_OF_ELEMENTS) {
i++;
choice = 4;
goto task_list;
}
printf("There are no task left");
goto task_list;