diff --git a/build/artifacts/release/project.out b/build/artifacts/release/project.out index 622a367..a92a15d 100755 Binary files a/build/artifacts/release/project.out and b/build/artifacts/release/project.out differ diff --git a/build/release/dependencies/add_student.d b/build/release/dependencies/add_student.d new file mode 100644 index 0000000..6c3a255 --- /dev/null +++ b/build/release/dependencies/add_student.d @@ -0,0 +1 @@ +build/release/out/c/add_student.o: src/main/c/add_student.c diff --git a/build/release/dependencies/add_subject.d b/build/release/dependencies/add_subject.d new file mode 100644 index 0000000..516203f --- /dev/null +++ b/build/release/dependencies/add_subject.d @@ -0,0 +1 @@ +build/release/out/c/add_subject.o: src/main/c/add_subject.c diff --git a/build/release/dependencies/main.d b/build/release/dependencies/main.d new file mode 100644 index 0000000..74fb41b --- /dev/null +++ b/build/release/dependencies/main.d @@ -0,0 +1,3 @@ +build/release/out/c/main.o: src/main/c/main.c src/main/c/add_subject.h \ + src/main/c/modify_subject.h src/main/c/add_student.h \ + src/main/c/modify_student.h src/main/c/show_statistics.h diff --git a/build/release/dependencies/modify_student.d b/build/release/dependencies/modify_student.d new file mode 100644 index 0000000..6e486eb --- /dev/null +++ b/build/release/dependencies/modify_student.d @@ -0,0 +1 @@ +build/release/out/c/modify_student.o: src/main/c/modify_student.c diff --git a/build/release/dependencies/modify_subject.d b/build/release/dependencies/modify_subject.d new file mode 100644 index 0000000..7ca395b --- /dev/null +++ b/build/release/dependencies/modify_subject.d @@ -0,0 +1 @@ +build/release/out/c/modify_subject.o: src/main/c/modify_subject.c diff --git a/build/release/dependencies/show_statistics.d b/build/release/dependencies/show_statistics.d new file mode 100644 index 0000000..7c283e6 --- /dev/null +++ b/build/release/dependencies/show_statistics.d @@ -0,0 +1 @@ +build/release/out/c/show_statistics.o: src/main/c/show_statistics.c diff --git a/build/release/out/c/Hallo_Welt.o b/build/release/out/c/Hallo_Welt.o index 69d3f13..f56ef23 100644 Binary files a/build/release/out/c/Hallo_Welt.o and b/build/release/out/c/Hallo_Welt.o differ diff --git a/build/release/out/c/add_student.o b/build/release/out/c/add_student.o new file mode 100644 index 0000000..7bd9ffe Binary files /dev/null and b/build/release/out/c/add_student.o differ diff --git a/build/release/out/c/add_subject.o b/build/release/out/c/add_subject.o new file mode 100644 index 0000000..c22adb9 Binary files /dev/null and b/build/release/out/c/add_subject.o differ diff --git a/build/release/out/c/main.o b/build/release/out/c/main.o new file mode 100644 index 0000000..4dda997 Binary files /dev/null and b/build/release/out/c/main.o differ diff --git a/build/release/out/c/modify_student.o b/build/release/out/c/modify_student.o new file mode 100644 index 0000000..651f919 Binary files /dev/null and b/build/release/out/c/modify_student.o differ diff --git a/build/release/out/c/modify_subject.o b/build/release/out/c/modify_subject.o new file mode 100644 index 0000000..1558c3e Binary files /dev/null and b/build/release/out/c/modify_subject.o differ diff --git a/build/release/out/c/show_statistics.o b/build/release/out/c/show_statistics.o new file mode 100644 index 0000000..ac9af01 Binary files /dev/null and b/build/release/out/c/show_statistics.o differ diff --git a/build/release/project.out b/build/release/project.out index 622a367..a92a15d 100755 Binary files a/build/release/project.out and b/build/release/project.out differ diff --git a/src/Hallo_Welt.c b/src/Hallo_Welt.c deleted file mode 100644 index 19a9d9d..0000000 --- a/src/Hallo_Welt.c +++ /dev/null @@ -1,6 +0,0 @@ -#include - -int main(){ - printf("Hallo Welt!\n"); - return 0; -} diff --git a/src/main/c/add_student.c b/src/main/c/add_student.c new file mode 100644 index 0000000..27fd329 --- /dev/null +++ b/src/main/c/add_student.c @@ -0,0 +1,7 @@ +#include + +void add_student(){ + printf("Füge Student hinzu...\n"); + getchar(); + return; +} \ No newline at end of file diff --git a/src/main/c/add_student.h b/src/main/c/add_student.h new file mode 100644 index 0000000..4424fc9 --- /dev/null +++ b/src/main/c/add_student.h @@ -0,0 +1,6 @@ +#ifndef ADD_STUDENT_H +#define ADD_STUDENT_H + +void add_student(); + +#endif // ADD_STUDENT_H \ No newline at end of file diff --git a/src/main/c/add_subject.c b/src/main/c/add_subject.c new file mode 100644 index 0000000..e89971a --- /dev/null +++ b/src/main/c/add_subject.c @@ -0,0 +1,7 @@ +#include + +void add_subject(){ + printf("Füge Fach hinzu...\n"); + getchar(); + return; +} \ No newline at end of file diff --git a/src/main/c/add_subject.h b/src/main/c/add_subject.h new file mode 100644 index 0000000..38e3a65 --- /dev/null +++ b/src/main/c/add_subject.h @@ -0,0 +1,6 @@ +#ifndef ADD_SUBJECT_H +#define ADD_SUBJECT_H + +void add_subject(); + +#endif // ADD_SUBJECT_H \ No newline at end of file diff --git a/src/main/c/main.c b/src/main/c/main.c new file mode 100644 index 0000000..9c2a206 --- /dev/null +++ b/src/main/c/main.c @@ -0,0 +1,56 @@ +#include +#include +#include + +#include "add_subject.h" +#include "modify_subject.h" +#include "add_student.h" +#include "modify_student.h" +#include "show_statistics.h" + +int main(){ + bool running = true; + + while (running){ + + int option = 0; + + system("clear"); + printf("Wählen Sie eine Option:\n"); + printf("\t1.Fach hinzufügen\n"); + printf("\t2.Fach bearbeiten\n"); + printf("\t3.Student hinzufügen\n"); + printf("\t4.Student bearbeiten\n"); + printf("\t5.Statistiken anzeigen\n"); + printf("\t6.Exit\n"); + + scanf("%d", &option); + getchar(); + + switch (option){ + case 1: + add_subject(); + break; + case 2: + modify_subject(); + break; + case 3: + add_student(); + break; + case 4: + modify_student(); + break; + case 5: + show_statistics(); + break; + case 6: + system("clear"); + running = false; + break; + + default: + break; + } + } + return 0; +} \ No newline at end of file diff --git a/src/main/c/main.h b/src/main/c/main.h new file mode 100644 index 0000000..71870e0 --- /dev/null +++ b/src/main/c/main.h @@ -0,0 +1,6 @@ +#ifndef MAIN_H +#define MAIN_H + +int main(); + +#endif // MAIN_H \ No newline at end of file diff --git a/src/main/c/modify_student.c b/src/main/c/modify_student.c new file mode 100644 index 0000000..18a7b85 --- /dev/null +++ b/src/main/c/modify_student.c @@ -0,0 +1,7 @@ +#include + +void modify_student(){ + printf("Bearbeite Student...\n"); + getchar(); + return; +} \ No newline at end of file diff --git a/src/main/c/modify_student.h b/src/main/c/modify_student.h new file mode 100644 index 0000000..7c930ef --- /dev/null +++ b/src/main/c/modify_student.h @@ -0,0 +1,6 @@ +#ifndef MODIFY_STUDENT_H +#define MODIFY_STUDENT_H + +void modify_student(); + +#endif // MODIFY_STUDENT_H \ No newline at end of file diff --git a/src/main/c/modify_subject.c b/src/main/c/modify_subject.c new file mode 100644 index 0000000..1610a5c --- /dev/null +++ b/src/main/c/modify_subject.c @@ -0,0 +1,7 @@ +#include + +void modify_subject(){ + printf("Bearbeite Fach...\n"); + getchar(); + return; +} \ No newline at end of file diff --git a/src/main/c/modify_subject.h b/src/main/c/modify_subject.h new file mode 100644 index 0000000..69892eb --- /dev/null +++ b/src/main/c/modify_subject.h @@ -0,0 +1,6 @@ +#ifndef MODIFY_SUBJECT_H +#define MODIFY_SUBJECT_H + +void modify_subject(); + +#endif // MODIFY_SUBJECT_H \ No newline at end of file diff --git a/src/main/c/show_statistics.c b/src/main/c/show_statistics.c new file mode 100644 index 0000000..1cd16b7 --- /dev/null +++ b/src/main/c/show_statistics.c @@ -0,0 +1,7 @@ +#include + +void show_statistics(){ + printf("Zeige Statistiken...\n"); + getchar(); + return; +} \ No newline at end of file diff --git a/src/main/c/show_statistics.h b/src/main/c/show_statistics.h new file mode 100644 index 0000000..b97005a --- /dev/null +++ b/src/main/c/show_statistics.h @@ -0,0 +1,6 @@ +#ifndef SHOW_STATISTICS_H +#define SHOW_STATISTICS_H + +void show_statistics(); + +#endif // SHOW_STATISTICS_H \ No newline at end of file