diff --git a/build-project.sh b/build-project.sh index 8147ac2..20234e5 100644 --- a/build-project.sh +++ b/build-project.sh @@ -5,5 +5,7 @@ ceedling test:all gcc -o main $(pwd)/src/*.c -lm ./main +read -p "Press [Enter] key to close terminal..." + rm -r build rm main diff --git a/src/funktion.c b/src/funktion.c new file mode 100644 index 0000000..8c929a5 --- /dev/null +++ b/src/funktion.c @@ -0,0 +1,12 @@ +#include +#include +#include +#include +#include"funktion.h" + +float getValue(char c) { + float value; + printf("%c eingeben: ",c); + scanf("%f", &value); + return value; +} \ No newline at end of file diff --git a/src/funktion.h b/src/funktion.h new file mode 100644 index 0000000..061958a --- /dev/null +++ b/src/funktion.h @@ -0,0 +1,6 @@ +#ifndef FUNKTION_H +#define FUNKTION_H + +float getValue(char c); + +#endif diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..80a2127 --- /dev/null +++ b/src/main.c @@ -0,0 +1,9 @@ +#include "funktion.h" +#include +#include +#include +#include + +int main() +{ +} \ No newline at end of file