Browse Source

refractoring

remotes/origin/feature
Enrico Schellenberger 11 months ago
parent
commit
bd2e1ef19f
  1. 1
      src/main/c/BasicMode.c
  2. 1
      src/main/c/main_taschenrechner.c
  3. 7
      src/main/c/taschenrechner.h
  4. 7
      src/main/c/testForNumber.c

1
src/main/c/BasicMode.c

@ -4,6 +4,5 @@
#include <math.h>
#include "taschenrechner.h"
#include "main_taschenrechner.c"

1
src/main/c/main_taschenrechner.c

@ -4,7 +4,6 @@
#include <math.h>
#include "taschenrechner.h"
#include "BasicMode.c"
doulbe add(doulbe a, doulbe b) {

7
src/main/c/taschenrechner.h

@ -1,14 +1,21 @@
#ifndef TASCHENRECHNER_H
#define TASCHENRECHNER_H
//add function
doulbe add(doulbe a, doulbe b);
//minus function
doulbe minus(doulbe a, doulbe b);
//multiply function
doulbe multiply(doulbe a, doulbe b);
//divide function
doulbe divide(doulbe a, doulbe b);
//get input and check if its a number
double testForNumber()
// Square root function
double squareRootFunction(double x);

7
src/main/c/testForNumber.c

@ -1,3 +1,10 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "taschenrechner.h"
double testForNumber() {
double num;
char storage[25];

Loading…
Cancel
Save