Compare commits
6 Commits
9d903f62f2
...
42183a0747
Author | SHA1 | Date |
---|---|---|
ketrptr | 42183a0747 | |
ketrptr | 809239492d | |
ketrptr | 5e3d89fb57 | |
ketrptr | 5d76c54213 | |
ketrptr | b5dc110cd2 | |
ketrptr | 9b3238978b |
117
src/db.c
117
src/db.c
|
@ -10,94 +10,93 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "llist.h"
|
||||||
|
#include "planner.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "planner.h"
|
#include <time.h>
|
||||||
#include "llist.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
write a complete linkedlist to a task csv file.
|
write a complete linkedlist to a task csv file.
|
||||||
*/
|
*/
|
||||||
void write_linkedlist_to_csv(llist *head, const char *filename) {
|
void write_linkedlist_to_csv(llist *head, const char *filename) {
|
||||||
//Open file with write permission
|
// Open file with write permision
|
||||||
FILE *file = fopen(filename, "w");
|
FILE *file = fopen(filename, "w");
|
||||||
//if there is no file or a wrong file path you become an error
|
// if there is no file or a wrong file path you becom an error
|
||||||
if (file == NULL) {
|
if (file == NULL) {
|
||||||
perror("Could not open file\n");
|
fprintf(stderr, "Could not open file %s\n", filename);
|
||||||
}
|
exit(1);
|
||||||
|
|
||||||
//write the file header
|
} else {
|
||||||
|
// write the file header
|
||||||
fprintf(file, "TaskName, Created, Deadline, Priority, Spare\n");
|
fprintf(file, "TaskName, Created, Deadline, Priority, Spare\n");
|
||||||
|
|
||||||
// Iterate through the linked list and write the data to the CSV
|
// Iterate through the linked list and write the data to the CSV
|
||||||
llist *current = head;
|
llist *current = head;
|
||||||
|
Task *task;
|
||||||
while (current != NULL) {
|
while (current != NULL) {
|
||||||
// Write the task data to the CSV file
|
task = current->data;
|
||||||
Task *task = (Task *) (current->data);
|
// Write the task data to the CSV file
|
||||||
fprintf(file, "%s, %llu, %llu, %d, %lu\n",
|
fprintf(file, "%s, %llu, %llu, %d, %llu\n", task->name, task->created,
|
||||||
task->name,
|
task->deadline, task->priority, task->spare);
|
||||||
task->created,
|
|
||||||
task->deadline,
|
|
||||||
task->priority,
|
|
||||||
task->spare);
|
|
||||||
|
|
||||||
|
current = current->next;
|
||||||
current = current->next;
|
|
||||||
}
|
}
|
||||||
fclose(file); // Close the file
|
fclose(file); // Close the file
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
read a task csv file and write the data in a linked list
|
read a task csv file and write the data in a linked list
|
||||||
*/
|
*/
|
||||||
|
|
||||||
llist *write_csv_to_llist(const char *filename) {
|
llist *write_csv_to_llist(const char *filename) {
|
||||||
//initialize list
|
llist *list = NULL; // list to return
|
||||||
llist *list = NULL;
|
// Open file with read permision
|
||||||
//Open file with read permission
|
FILE *file = fopen(filename, "r");
|
||||||
FILE *file = fopen(filename, "r");
|
if (file == NULL) {
|
||||||
if (file == NULL) {
|
fprintf(stderr, "Could not open file %s\n", filename);
|
||||||
perror("Could not open file\n");
|
|
||||||
}
|
} else {
|
||||||
char line[1024]; //Line Buffer
|
char line[1024]; // Line Buffer
|
||||||
int count = 0; //task counter
|
int count = 0; // task counter
|
||||||
fgets(line, sizeof(line), file); //read and ignore file head
|
fgets(line, sizeof(line), file); // read and ignore file head
|
||||||
|
|
||||||
while (fgets(line, sizeof(line), file)) {
|
while (fgets(line, sizeof(line), file)) {
|
||||||
count++;
|
count++;
|
||||||
//remove newline sign
|
// remove newline sign
|
||||||
line[strcspn(line, "\n")] = '\0';
|
line[strcspn(line, "\n")] = '\0';
|
||||||
|
|
||||||
// column slice
|
// column slice
|
||||||
char *task_name = strtok(line, ",");
|
char *taskname = strtok(line, ",");
|
||||||
char *task_creation_dateSTR = strtok(NULL, ",");
|
char *taskcreation_dateSTR = strtok(NULL, ",");
|
||||||
char *task_deadline_dateSTR = strtok(NULL, ",");
|
char *taskdeadline_dateSTR = strtok(NULL, ",");
|
||||||
char *task_prioritySTR = strtok(NULL, ",");
|
char *taskprioritySTR = strtok(NULL, ",");
|
||||||
char *task_spareSTR = strtok(NULL, ",");
|
char *taskspareSTR = strtok(NULL, ",");
|
||||||
|
|
||||||
|
// convert char in integer and date
|
||||||
|
unsigned long int taskcreation_date =
|
||||||
|
strtoul(taskcreation_dateSTR, NULL, 10);
|
||||||
|
unsigned long int taskdeadline_date =
|
||||||
|
strtoul(taskdeadline_dateSTR, NULL, 10);
|
||||||
|
unsigned long int taskspare = strtoul(taskspareSTR, NULL, 10);
|
||||||
|
int priority = atoi(taskprioritySTR);
|
||||||
|
|
||||||
// convert char in integer and date
|
// create Task
|
||||||
unsigned long long int task_creation_date = (unsigned long long int)strtoul(task_creation_dateSTR, NULL, 10);
|
Task *task = newTask(taskname, taskcreation_date, taskdeadline_date,
|
||||||
unsigned long long int task_deadline_date = (unsigned long long int)strtoul(task_deadline_dateSTR,NULL, 10);
|
priority, taskspare);
|
||||||
unsigned long int task_spare = (unsigned long int)strtoul(task_spareSTR,NULL, 10);
|
|
||||||
int task_priority = (int)strtol(task_prioritySTR, NULL, 10);
|
|
||||||
|
|
||||||
|
// Insert task into the linked list
|
||||||
//create Task
|
if (list == NULL) {
|
||||||
Task *task = newTask(task_name, task_creation_date, task_deadline_date, task_priority, task_spare);
|
// If the list is empty, initialize it with the first task
|
||||||
|
list = llistNew(task, cmpTaskN);
|
||||||
|
} else {
|
||||||
// Insert task into the linked list
|
// Append the task to the linked list
|
||||||
if (list == NULL) {
|
llistAppend(list, task);
|
||||||
// If the list is empty, initialize it with the first task
|
}
|
||||||
list = llistNew(task, cmpTaskN);
|
|
||||||
} else {
|
|
||||||
// Append the task to the linked list
|
|
||||||
llistAppend(list, task);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
fclose(file);
|
fclose(file);
|
||||||
return list;
|
}
|
||||||
|
return list; // null on error
|
||||||
}
|
}
|
||||||
|
|
5
src/db.h
5
src/db.h
|
@ -5,5 +5,10 @@
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
void write_linkedlist_to_csv(llist *head, const char *filename);
|
||||||
|
llist *write_csv_to_llist(const char *filename);
|
||||||
|
=======
|
||||||
extern void write_linkedlist_to_csv(llist* head, const char* filename);
|
extern void write_linkedlist_to_csv(llist* head, const char* filename);
|
||||||
extern void write_csv_to_llist(const char* filename);
|
extern void write_csv_to_llist(const char* filename);
|
||||||
|
>>>>>>> 9d903f62f26133fd6f309036b3da11400168e705
|
||||||
|
|
|
@ -269,3 +269,71 @@ llist *genPlan(llist *head, time_t timeAvail) {
|
||||||
|
|
||||||
return events_ll;
|
return events_ll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *iCalHeader = "BEGIN:VCALENDAR\r\n"
|
||||||
|
"VERSION:2.0\r\n"
|
||||||
|
"PRODID:-//hacksw/handcal//NONSGML v1.0//EN\r\n";
|
||||||
|
const char *iCalEvent = "BEGIN:VEVENT\r\n"
|
||||||
|
"UID:%s%d\r\n"
|
||||||
|
"DTSTAMP:%s\r\n"
|
||||||
|
"DTSTART:%s\r\n"
|
||||||
|
"DTEND:%s\r\n"
|
||||||
|
"SUMMARY:%s\r\n"
|
||||||
|
"END:VEVENT\r\n";
|
||||||
|
|
||||||
|
int exportiCal(llist *events_ll) {
|
||||||
|
|
||||||
|
llist *ev_ll = events_ll;
|
||||||
|
|
||||||
|
llistPrintE(ev_ll);
|
||||||
|
|
||||||
|
printf("%s", iCalHeader);
|
||||||
|
|
||||||
|
time_t now = time(NULL);
|
||||||
|
struct tm lc;
|
||||||
|
localtime_r(&now, &lc);
|
||||||
|
|
||||||
|
// gen filename & open for write
|
||||||
|
char nameBuf[32];
|
||||||
|
strftime(nameBuf, 32 - 12, "%F", &lc);
|
||||||
|
strcat(nameBuf, "dayplan.ics");
|
||||||
|
FILE *fp = fopen(nameBuf, "w");
|
||||||
|
if (fp == NULL) {
|
||||||
|
planLog("fopen failed!!", 1);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
// write iCal header to file
|
||||||
|
fprintf(fp, "%s", iCalHeader);
|
||||||
|
|
||||||
|
// for every event in events_ll create VEVENT str and write to fp
|
||||||
|
int count = 0;
|
||||||
|
while (ev_ll != NULL) {
|
||||||
|
// gen iCal compatible time str
|
||||||
|
Event *current = ev_ll->data;
|
||||||
|
struct tm startlc;
|
||||||
|
struct tm endlc;
|
||||||
|
localtime_r(¤t->plannedStartTime, &startlc);
|
||||||
|
localtime_r(¤t->plannedEndTime, &endlc);
|
||||||
|
char timeStartBuf[17];
|
||||||
|
char timeEndBuf[17];
|
||||||
|
char timeStamp[17];
|
||||||
|
strftime(timeStamp, 17, "%Y%m%dT%k%M%SZ", &lc);
|
||||||
|
printf("%s\n", timeStamp);
|
||||||
|
strftime(timeStartBuf, 17, "%Y%m%dT%k%M%SZ", &startlc);
|
||||||
|
printf("%s\n", timeStartBuf);
|
||||||
|
strftime(timeEndBuf, 17, "%Y%m%dT%k%M%SZ", &endlc);
|
||||||
|
printf("%s\n", timeEndBuf);
|
||||||
|
|
||||||
|
fprintf(fp, iCalEvent, current->task->name, count, timeStamp, timeStartBuf,
|
||||||
|
timeEndBuf, current->task->name);
|
||||||
|
ev_ll = ev_ll->next;
|
||||||
|
count += 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// after all events are written end cal with
|
||||||
|
// END:VCALENDAR
|
||||||
|
fprintf(fp, "END:VCALENDAR\r\n");
|
||||||
|
fclose(fp);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
|
@ -83,4 +83,6 @@ int cmpEvent(const void *a, const void *b);
|
||||||
*/
|
*/
|
||||||
llist *genPlan(llist *head, time_t timeAvail);
|
llist *genPlan(llist *head, time_t timeAvail);
|
||||||
|
|
||||||
|
int exportiCal(llist *head);
|
||||||
|
|
||||||
#endif // !PLANNER
|
#endif // !PLANNER
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
int main() {
|
int test() {
|
||||||
|
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
|
|
||||||
|
|
206
src/ui.c
206
src/ui.c
|
@ -5,12 +5,15 @@
|
||||||
/* Created by Juergen Buechel, 13.12.2024/
|
/* Created by Juergen Buechel, 13.12.2024/
|
||||||
*/
|
*/
|
||||||
#include "ui.h"
|
#include "ui.h"
|
||||||
// #include "db.h"
|
#include "db.h"
|
||||||
#include "llist.h"
|
#include "llist.h"
|
||||||
#include "planner.h" // for subject and event structs
|
#include "planner.h" // for subject and event structs
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
|
const char *dbName = "db.csv";
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
char taskname[256]; // taskName Buffer
|
char taskname[256]; // taskName Buffer
|
||||||
|
@ -19,57 +22,81 @@ int main(void) {
|
||||||
int taskpriority = 0;
|
int taskpriority = 0;
|
||||||
int taskspare = 0;
|
int taskspare = 0;
|
||||||
|
|
||||||
llist *list = llistNew(NULL, cmpTaskN);
|
llist *listT = NULL;
|
||||||
|
llist *listE = NULL;
|
||||||
int choice = 0, i = 0;
|
int choice = 0, i = 0;
|
||||||
do {
|
do {
|
||||||
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- Kalenderlink ausgeben\n");
|
printf(" -4- Kalenderlink ausgeben\n");
|
||||||
printf(" -5- Planer beenden\n");
|
printf(" -5- Faecher Importieren\n");
|
||||||
|
printf(" -6- Planer beenden\n");
|
||||||
printf(" Wähle die gewünschte Option aus\n");
|
printf(" Wähle die gewünschte Option aus\n");
|
||||||
if (scanf("%d", &choice) != 1) {
|
if (scanf("%d", &choice) != 1) {
|
||||||
printf("Falsche Eingabe\n");
|
printf("Falsche Eingabe\n");
|
||||||
};
|
};
|
||||||
choice = 0;
|
// choice = 0;
|
||||||
|
|
||||||
while ((choice < 1 || choice > 5)) {
|
switch (choice) {
|
||||||
switch (choice) {
|
case 1:
|
||||||
case 1: {
|
printf(" Geben sie das gewünschte Fach ein: \n");
|
||||||
printf(" Geben sie das gewünschte Fach ein: \n");
|
time_t now = time(NULL);
|
||||||
if (scanf("%c", taskname) != 1) {
|
struct tm lc;
|
||||||
printf("Ungültige Eingabe für den Namen.\n");
|
localtime_r(&now, &lc);
|
||||||
return -1;
|
if (fscanf(stdin, "%s", taskname) <= 0) {
|
||||||
}
|
printf("Ungültige Eingabe für den Namen.\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
printf(" Wie viel Zeit bleibt ihnen:\n");
|
printf(" Wie viel Zeit bleibt ihnen (tage bis deadline):\n");
|
||||||
if (scanf("%d", &taskdeadline_date) != 1) {
|
if (scanf("%d", &taskdeadline_date) != 1) {
|
||||||
printf("Ungültige Eingabe.\n");
|
printf("Ungültige Eingabe.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf(" Gib die Priorität des Faches an: \n");
|
printf(" Gib die Priorität des Faches an: \n");
|
||||||
if (scanf("%d", &taskpriority) != 1) {
|
if (scanf("%d", &taskpriority) != 1) {
|
||||||
printf("Ungültige Eingabe.\n");
|
printf("Ungültige Eingabe.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf(" Wie viel Zeit habe Sie für dieses Fach: \n");
|
// printf(" Wie viel Zeit habe Sie für dieses Fach: \n");
|
||||||
if (scanf("%d", &taskspare) != 1) {
|
// if (scanf("%d", &taskspare) != 1) {
|
||||||
printf("Ungültige Eingabe.\n");
|
// printf("Ungültige Eingabe.\n");
|
||||||
return -1;
|
// 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:
|
// create deadline timestamp
|
||||||
// if (task == NULL) {
|
lc.tm_yday += taskdeadline_date;
|
||||||
// printf("Die Liste ist leer");
|
time_t deadline = mktime(&lc);
|
||||||
// } else {
|
Task *newT = newTask(taskname, now, deadline, taskpriority, 0);
|
||||||
|
if (listT == NULL) {
|
||||||
|
listT = llistNew(newT, cmpTaskN);
|
||||||
|
} else {
|
||||||
|
llistAppend(listT, newT);
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
printf(
|
||||||
|
"Geben Sie die zur verfuegung stehende Zeit für die Fächer an: \n");
|
||||||
|
scanf("%d", &taskspare);
|
||||||
|
// if list exists use it to generate plan
|
||||||
|
if (listT != NULL) {
|
||||||
|
listE = genPlan(listT, taskspare);
|
||||||
|
write_linkedlist_to_csv(listT, dbName);
|
||||||
|
} else {
|
||||||
|
printf("list is empty!");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 3:
|
||||||
|
if (listT == NULL) {
|
||||||
|
printf("Die Liste ist leer");
|
||||||
|
} else {
|
||||||
|
llistPrintT(listT);
|
||||||
// llist *iterator = list;
|
// llist *iterator = list;
|
||||||
// while (iterator != NULL) {
|
// while (iterator != NULL) {
|
||||||
// Task *currentTask = (Task *)(iterator->data); // Cast zu Task
|
// Task *currentTask = (Task *)(iterator->data); // Cast zu Task
|
||||||
|
@ -78,54 +105,65 @@ int main(void) {
|
||||||
// currentTask->priority);
|
// currentTask->priority);
|
||||||
// iterator = iterator->next; // Gehe zum nächsten Listenelement
|
// iterator = iterator->next; // Gehe zum nächsten Listenelement
|
||||||
// }
|
// }
|
||||||
// }
|
|
||||||
break;
|
|
||||||
// case 4: iCAl();break;
|
|
||||||
|
|
||||||
printf(" Wie viel Zeit bleibt ihnen:\n");
|
|
||||||
if (scanf("%d", &taskdeadline_date) != 1) {
|
|
||||||
printf("Ungültige Eingabe.\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
printf(" Gib die Priorität des Faches an: \n");
|
|
||||||
if (scanf("%d", &taskpriority) != 1) {
|
|
||||||
printf("Ungültige Eingabe.\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
printf(" Wie viel Zeit habe Sie für dieses Fach: \n");
|
|
||||||
if (scanf("%d", &taskspare) != 1) {
|
|
||||||
printf("Ungültige Eingabe.\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
printf(
|
|
||||||
"Geben Sie die zur verfuegung stehende Zeit für die Fächer an: \n");
|
|
||||||
scanf("%d", &taskspare);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 5:
|
|
||||||
// if (task == NULL) {//task?
|
|
||||||
// printf("Die Liste ist leer");
|
|
||||||
// } else {
|
|
||||||
// llist *iterator = list;
|
|
||||||
// while (iterator != NULL) {
|
|
||||||
// Task *currentTask = (Task *)(iterator->data); // Cast zu Task
|
|
||||||
// printf("Fach: %s, Deadline: %ld, Priorität: %d\n",
|
|
||||||
// currentTask->name, currentTask->deadline,
|
|
||||||
// currentTask->priority);
|
|
||||||
// iterator = iterator->next; // Gehe zum nächsten Listenelement
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
break;
|
|
||||||
// case 4: iCAl();break;
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
// // case 4: iCAl();break;
|
||||||
|
//
|
||||||
|
// printf(" Wie viel Zeit bleibt ihnen:\n");
|
||||||
|
// if (scanf("%d", &taskdeadline_date) != 1) {
|
||||||
|
// printf("Ungültige Eingabe.\n");
|
||||||
|
// return -1;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// printf(" Gib die Priorität des Faches an: \n");
|
||||||
|
// if (scanf("%d", &taskpriority) != 1) {
|
||||||
|
// printf("Ungültige Eingabe.\n");
|
||||||
|
// return -1;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// printf(" Wie viel Zeit habe Sie für dieses Fach: \n");
|
||||||
|
// if (scanf("%d", &taskspare) != 1) {
|
||||||
|
// printf("Ungültige Eingabe.\n");
|
||||||
|
// return -1;
|
||||||
|
// }
|
||||||
|
// break;
|
||||||
|
case 4:
|
||||||
|
if (listE == NULL || taskspare <= 0) {
|
||||||
|
printf("vor Export erst task list erstellen, dann verfuegbare zeit "
|
||||||
|
"eingeben!\n");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
exportiCal(listE);
|
||||||
|
// printf(
|
||||||
|
// "Geben Sie die zur verfuegung stehende Zeit für die Fächer an:
|
||||||
|
// \n");
|
||||||
|
// scanf("%d", &taskspare);
|
||||||
|
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
listT = write_csv_to_llist(dbName);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 6:
|
||||||
|
printf("Goodbye!\n");
|
||||||
|
if (listE != NULL)
|
||||||
|
llistFreeE(listE);
|
||||||
|
if (listT != NULL)
|
||||||
|
llistPrintT(listT);
|
||||||
|
// if (task == NULL) {//task?
|
||||||
|
// printf("Die Liste ist leer");
|
||||||
|
// } else {
|
||||||
|
// llist *iterator = list;
|
||||||
|
// while (iterator != NULL) {
|
||||||
|
// Task *currentTask = (Task *)(iterator->data); // Cast zu Task
|
||||||
|
// printf("Fach: %s, Deadline: %ld, Priorität: %d\n",
|
||||||
|
// currentTask->name, currentTask->deadline,
|
||||||
|
// currentTask->priority);
|
||||||
|
// iterator = iterator->next; // Gehe zum nächsten Listenelement
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
// case 4: iCAl();break;
|
||||||
}
|
}
|
||||||
} while (choice != 5);
|
} while (choice < 6);
|
||||||
{
|
|
||||||
return EXIT_SUCCESS;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue