Browse Source

initialcommit

main
Celal Kir 2 years ago
parent
commit
3a21851354
  1. 2
      build-project.sh
  2. 12
      src/funktion.c
  3. 6
      src/funktion.h
  4. 9
      src/main.c

2
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

12
src/funktion.c

@ -0,0 +1,12 @@
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include"funktion.h"
float getValue(char c) {
float value;
printf("%c eingeben: ",c);
scanf("%f", &value);
return value;
}

6
src/funktion.h

@ -0,0 +1,6 @@
#ifndef FUNKTION_H
#define FUNKTION_H
float getValue(char c);
#endif

9
src/main.c

@ -0,0 +1,9 @@
#include "funktion.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
}
Loading…
Cancel
Save