diff --git a/Makefile b/Makefile index cb777f7..0fe2752 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ all: - g++ -v mate.cpp -o mate + g++ -v mate.cpp mate.hpp -o mate clean: rm -v mate install: diff --git a/mate.cpp b/mate.cpp index d1cbf13..c9e0c76 100644 --- a/mate.cpp +++ b/mate.cpp @@ -4,11 +4,11 @@ // Der Konsum von zu viel Zucker und Koffein ist nicht Gesund und kann Gesundheitliche Schäden bewirken // Version 1.3 #include +#include "mate.hpp" using namespace std; int main(){ - int mate, Koffeingehalt, marke, kmenge, ergebnis; + int mate, Koffeingehalt, marke, kmenge, ergebnis; string input, markenname; - cout << " ** ** ** ** \n"; cout << " ** ** ** ++ ** \n"; cout << " **** **** **** ++ **** \n"; diff --git a/mate.hpp b/mate.hpp new file mode 100644 index 0000000..6ca3d82 --- /dev/null +++ b/mate.hpp @@ -0,0 +1,7 @@ +#ifndef MATE_H +#define MATE_H + +#include +extern int mate, Koffeingehalt, marke, kmenge, ergebnis; +extern std::string input, markenname; +#endif \ No newline at end of file