Browse Source

adding rough structure

remotes/origin/fdai7775-main-patch-54732
David Moeller 12 months ago
parent
commit
e21669f17f
  1. BIN
      build/artifacts/release/project.out
  2. 1
      build/release/dependencies/add_student.d
  3. 1
      build/release/dependencies/add_subject.d
  4. 3
      build/release/dependencies/main.d
  5. 1
      build/release/dependencies/modify_student.d
  6. 1
      build/release/dependencies/modify_subject.d
  7. 1
      build/release/dependencies/show_statistics.d
  8. BIN
      build/release/out/c/Hallo_Welt.o
  9. BIN
      build/release/out/c/add_student.o
  10. BIN
      build/release/out/c/add_subject.o
  11. BIN
      build/release/out/c/main.o
  12. BIN
      build/release/out/c/modify_student.o
  13. BIN
      build/release/out/c/modify_subject.o
  14. BIN
      build/release/out/c/show_statistics.o
  15. BIN
      build/release/project.out
  16. 6
      src/Hallo_Welt.c
  17. 7
      src/main/c/add_student.c
  18. 6
      src/main/c/add_student.h
  19. 7
      src/main/c/add_subject.c
  20. 6
      src/main/c/add_subject.h
  21. 56
      src/main/c/main.c
  22. 6
      src/main/c/main.h
  23. 7
      src/main/c/modify_student.c
  24. 6
      src/main/c/modify_student.h
  25. 7
      src/main/c/modify_subject.c
  26. 6
      src/main/c/modify_subject.h
  27. 7
      src/main/c/show_statistics.c
  28. 6
      src/main/c/show_statistics.h

BIN
build/artifacts/release/project.out

1
build/release/dependencies/add_student.d

@ -0,0 +1 @@
build/release/out/c/add_student.o: src/main/c/add_student.c

1
build/release/dependencies/add_subject.d

@ -0,0 +1 @@
build/release/out/c/add_subject.o: src/main/c/add_subject.c

3
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

1
build/release/dependencies/modify_student.d

@ -0,0 +1 @@
build/release/out/c/modify_student.o: src/main/c/modify_student.c

1
build/release/dependencies/modify_subject.d

@ -0,0 +1 @@
build/release/out/c/modify_subject.o: src/main/c/modify_subject.c

1
build/release/dependencies/show_statistics.d

@ -0,0 +1 @@
build/release/out/c/show_statistics.o: src/main/c/show_statistics.c

BIN
build/release/out/c/Hallo_Welt.o

BIN
build/release/out/c/add_student.o

BIN
build/release/out/c/add_subject.o

BIN
build/release/out/c/main.o

BIN
build/release/out/c/modify_student.o

BIN
build/release/out/c/modify_subject.o

BIN
build/release/out/c/show_statistics.o

BIN
build/release/project.out

6
src/Hallo_Welt.c

@ -1,6 +0,0 @@
#include <stdio.h>
int main(){
printf("Hallo Welt!\n");
return 0;
}

7
src/main/c/add_student.c

@ -0,0 +1,7 @@
#include <stdio.h>
void add_student(){
printf("Füge Student hinzu...\n");
getchar();
return;
}

6
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

7
src/main/c/add_subject.c

@ -0,0 +1,7 @@
#include <stdio.h>
void add_subject(){
printf("Füge Fach hinzu...\n");
getchar();
return;
}

6
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

56
src/main/c/main.c

@ -0,0 +1,56 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#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;
}

6
src/main/c/main.h

@ -0,0 +1,6 @@
#ifndef MAIN_H
#define MAIN_H
int main();
#endif // MAIN_H

7
src/main/c/modify_student.c

@ -0,0 +1,7 @@
#include <stdio.h>
void modify_student(){
printf("Bearbeite Student...\n");
getchar();
return;
}

6
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

7
src/main/c/modify_subject.c

@ -0,0 +1,7 @@
#include <stdio.h>
void modify_subject(){
printf("Bearbeite Fach...\n");
getchar();
return;
}

6
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

7
src/main/c/show_statistics.c

@ -0,0 +1,7 @@
#include <stdio.h>
void show_statistics(){
printf("Zeige Statistiken...\n");
getchar();
return;
}

6
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
Loading…
Cancel
Save