diff --git a/tests/o.c b/tests/o.c deleted file mode 100644 index ff7ec1b..0000000 --- a/tests/o.c +++ /dev/null @@ -1 +0,0 @@ -#include "" \ No newline at end of file diff --git a/tests/o.h b/tests/o.h deleted file mode 100644 index 073ed55..0000000 --- a/tests/o.h +++ /dev/null @@ -1,3 +0,0 @@ -void print(char *text) -void println(char *text) - diff --git a/tests/run b/tests/run index d47ba96..a75722b 100755 --- a/tests/run +++ b/tests/run @@ -1,4 +1,5 @@ #!/bin/bash -gcc work1.c -o work1 -./work1 \ No newline at end of file +rm -r work1 + +gcc work1.c -o work1 && ./work1 \ No newline at end of file diff --git a/tests/util.c b/tests/util.c new file mode 100644 index 0000000..98b95e2 --- /dev/null +++ b/tests/util.c @@ -0,0 +1,14 @@ +#include "stdio.h" + +void print(char *text) { + printf(text); +} + +void println(char *text) { + newline(); + print(text); +} + +void newline() { + printf("\n"); +} \ No newline at end of file diff --git a/tests/work1 b/tests/work1 index 0fa1324..149aecc 100755 Binary files a/tests/work1 and b/tests/work1 differ diff --git a/tests/work1.c b/tests/work1.c index f9b5cb2..09a6b54 100644 --- a/tests/work1.c +++ b/tests/work1.c @@ -1,6 +1,7 @@ #include "stdio.h" #include "string.h" #include "stdlib.h" +#include "util.c" struct person_tag { @@ -60,9 +61,12 @@ int main() display_menu(); - scanf("\nenter the option: ", selected); - menu(selected); + newline(); + + // scanf("\nenter the option: ", selected); + + // menu(selected); return 0; } @@ -107,5 +111,25 @@ void display_menu() { } void display_students() { - printf() + +} + +void search_student() { + +} + +void find_maximum() { + +} + +void find_failed() { + +} + +void update_file() { + +} + +void exit_program() { + println("Goodbye..."); } \ No newline at end of file