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