Browse Source

Enum and struct for calculation in inputHandling.h

remotes/origin/Input_Handling
Sophia Weber 11 months ago
parent
commit
37fc481970
  1. 2
      src/inputHandling.c
  2. 13
      src/inputHandling.h

2
src/inputHandling.c

@ -22,3 +22,5 @@ void deleteWhitespace(){
} }
} }
} }

13
src/inputHandling.h

@ -1,6 +1,19 @@
#ifndef INPUTHANDLING_H #ifndef INPUTHANDLING_H
#define INPUTHANDLING_H #define INPUTHANDLING_H
typedef enum{
opAdd, opSub, opDiv, opMult, opExp, opLog
}op;
typedef struct {
op funktionstyp;
char* formel;
double array[10];
void* child;
double result;
}calc_op;
extern void input(); extern void input();
#endif // INPUTHANDLING_H #endif // INPUTHANDLING_H
Loading…
Cancel
Save