changes
This commit is contained in:
		
							parent
							
								
									81c62f892d
								
							
						
					
					
						commit
						ad20db3995
					
				
							
								
								
									
										17
									
								
								src/ui.c
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								src/ui.c
									
									
									
									
									
								
							| @ -25,7 +25,7 @@ int main(void) | ||||
|     Task *task = newTask(taskname, taskcreation_date, taskdeadline_date, taskpriority, taskspare); | ||||
|     if (task == NULL) { | ||||
|         printf("Fehler beim Erstellen der Aufgabe.\n"); | ||||
|         return -1; | ||||
|         return 0; | ||||
|     } | ||||
| 
 | ||||
|     if (list == NULL) { | ||||
| @ -48,7 +48,8 @@ int main(void) | ||||
|             printf("Falsche Eingabe\n");}; | ||||
|         choice = 0; | ||||
| 
 | ||||
|         while(( choice < 1 || choice > 5)){ | ||||
|         while(( choice < 1 || choice > 5)) | ||||
|         { | ||||
|             switch (choice) | ||||
|             { | ||||
|             case 1: | ||||
| @ -80,13 +81,13 @@ int main(void) | ||||
|                         return -1; | ||||
|                     } | ||||
|                     break; | ||||
| 
 | ||||
|                     case 2: | ||||
|                         printf("Geben Sie die zur verfuegung stehende Zeit für die Fächer an: \n"); | ||||
|                     scanf("%c", &taskspare); | ||||
|                     break; | ||||
| 
 | ||||
|             case 3: if( task == NULL){ | ||||
|                     case 3: if( task == NULL) | ||||
|                     { | ||||
|                         printf("Die Liste ist leer"); | ||||
|                     } | ||||
|                     else | ||||
| @ -99,13 +100,15 @@ int main(void) | ||||
|                             iterator = iterator->next; // Gehe zum nächsten Listenelement
 | ||||
|                         } | ||||
|                     } | ||||
| 
 | ||||
|                     break; | ||||
|                     // case 4: iCAl();break;
 | ||||
|                 } | ||||
|         }while (choice !=5); | ||||
|                 while (choice !=5);{ | ||||
|                 return EXIT_SUCCESS; | ||||
| 
 | ||||
| 
 | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user