diff options
| author | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
|---|---|---|
| committer | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
| commit | 33613a85afc4b1481367fbe92a17ee59c240250b (patch) | |
| tree | 670b842326116b376b505ec2263878912fca97e2 /Bachelor/Prog1/Prakt6/prg1p6_1/main.cpp | |
| download | Studium-master.tar.gz Studium-master.tar.bz2 | |
Diffstat (limited to 'Bachelor/Prog1/Prakt6/prg1p6_1/main.cpp')
| -rw-r--r-- | Bachelor/Prog1/Prakt6/prg1p6_1/main.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Bachelor/Prog1/Prakt6/prg1p6_1/main.cpp b/Bachelor/Prog1/Prakt6/prg1p6_1/main.cpp new file mode 100644 index 0000000..6c26572 --- /dev/null +++ b/Bachelor/Prog1/Prakt6/prg1p6_1/main.cpp @@ -0,0 +1,25 @@ +// Programmieren 1, Praktikum 6, Aufgabe 1
+// Author: Sven Eisenhauer
+// Date: 13.01.2005
+// File: main.cpp
+// Description: Application
+
+#include "frozenm.h"
+#include "microwave.h"
+#include <string>
+
+int main()
+{
+ Microwave micro(22000);
+ FrozenMeal lasagne("Lasagne",200);
+ micro.setPeriod(120.0);
+ micro.morePower();
+ micro.morePower();
+ micro.morePower();
+ micro.heatMeal(lasagne);
+ FrozenMeal something("Something",250);
+ micro.lessPower();
+ micro.setPeriod(180.0);
+ micro.heatMeal(something);
+ return 0;
+}
|
