From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- Bachelor/Prog1/Prakt6/prg1p6_1/main.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Bachelor/Prog1/Prakt6/prg1p6_1/main.cpp (limited to 'Bachelor/Prog1/Prakt6/prg1p6_1/main.cpp') 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 + +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; +} -- cgit v1.2.3