hpp file implemented

This commit is contained in:
datewat 2022-11-25 15:50:35 +01:00
parent ea94e47c12
commit b5a6ea7864
3 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,5 @@
all:
g++ -v mate.cpp -o mate
g++ -v mate.cpp mate.hpp -o mate
clean:
rm -v mate
install:

View File

@ -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 <iostream>
#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";

7
mate.hpp Normal file
View File

@ -0,0 +1,7 @@
#ifndef MATE_H
#define MATE_H
#include <iostream>
extern int mate, Koffeingehalt, marke, kmenge, ergebnis;
extern std::string input, markenname;
#endif