integrated case 4:Kalenderlink ausgabe
This commit is contained in:
		
							parent
							
								
									36a3f8d28c
								
							
						
					
					
						commit
						8c695e4eb7
					
				
							
								
								
									
										17
									
								
								src/ui.c
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								src/ui.c
									
									
									
									
									
								
							@ -2,16 +2,22 @@
 | 
				
			|||||||
 * command line interface for user input
 | 
					 * command line interface for user input
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					/* Created by Juergen Buechel, 13.12.2024/
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
#include "planner.h" // for subject and event structs
 | 
					#include "planner.h" // for subject and event structs
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include "ui.h"
 | 
					#include "ui.h"
 | 
				
			||||||
 | 
					#include "planner.h"
 | 
				
			||||||
 | 
					#include "iCal.h"
 | 
				
			||||||
 | 
					#include "db.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typedef struct task {
 | 
					typedef struct task {
 | 
				
			||||||
    char name;
 | 
					    char name;
 | 
				
			||||||
    int priority;
 | 
					    int priority;
 | 
				
			||||||
    struct task *nextTask;
 | 
					    struct task *nextTask;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typedef struct task task_1;
 | 
					typedef struct task task_1;
 | 
				
			||||||
typedef struct task* task_ptr;
 | 
					typedef struct task* task_ptr;
 | 
				
			||||||
task_ptr firsttask = NULL;
 | 
					task_ptr firsttask = NULL;
 | 
				
			||||||
@ -111,6 +117,11 @@ void tasklisting(void){
 | 
				
			|||||||
        TaskPointer = TaskPointer->nextTask;
 | 
					        TaskPointer = TaskPointer->nextTask;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void getlink (void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int main(void)
 | 
					int main(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    int choice = 0, i = 0;
 | 
					    int choice = 0, i = 0;
 | 
				
			||||||
@ -119,7 +130,8 @@ int main(void)
 | 
				
			|||||||
        printf(" -1- Neues Fach eingeben\n");
 | 
					        printf(" -1- Neues Fach eingeben\n");
 | 
				
			||||||
        printf(" -2- Verfuegbare Zeit eingeben\n");
 | 
					        printf(" -2- Verfuegbare Zeit eingeben\n");
 | 
				
			||||||
        printf(" -3- Alle vorhandenen Faecher aufliesten\n");
 | 
					        printf(" -3- Alle vorhandenen Faecher aufliesten\n");
 | 
				
			||||||
        printf(" -4- Planer beenden\n");
 | 
					        printf(" -4- Kalenderlink ausgeben\n");
 | 
				
			||||||
 | 
					        printf(" -5- Planer beenden\n");
 | 
				
			||||||
        if( scanf("%d", &choice) != 1){
 | 
					        if( scanf("%d", &choice) != 1){
 | 
				
			||||||
            printf("Falsche Eingabe\n");};
 | 
					            printf("Falsche Eingabe\n");};
 | 
				
			||||||
        choice = 0;
 | 
					        choice = 0;
 | 
				
			||||||
@ -135,8 +147,9 @@ int main(void)
 | 
				
			|||||||
        else{
 | 
					        else{
 | 
				
			||||||
            tasklisting();
 | 
					            tasklisting();
 | 
				
			||||||
        }break;
 | 
					        }break;
 | 
				
			||||||
 | 
					        case 4: iCAl();break;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }while (choice != 4);
 | 
					    }while (choice !=5);
 | 
				
			||||||
    return EXIT_SUCCESS;
 | 
					    return EXIT_SUCCESS;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user