From f4a7e9913a9bfbefdd0a15ba2b7de49d26f2e659 Mon Sep 17 00:00:00 2001 From: Samuel Oberhofer Date: Mon, 23 May 2022 22:07:23 +0200 Subject: [PATCH] edit tests --- Uebung 1/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Uebung 1/main.cpp b/Uebung 1/main.cpp index a0a4468..fe7fcc0 100644 --- a/Uebung 1/main.cpp +++ b/Uebung 1/main.cpp @@ -17,9 +17,9 @@ int main() { sortiment.addWare(new Ware("ware1", 5, 13.1, 13, 10)); sortiment.addWare(new Ware("ware1", 5, 13.1, 13, 10)); - sortiment.sort(2); + sortiment.sort(4); for (int i = 0; i < 10; i++) { - std::cout << sortiment.waren[i]->getGewicht() << std::endl; + std::cout << *(sortiment.waren[i]) << std::endl; } } \ No newline at end of file