From 9b5f558b37fbee9a2e6221898971e4a9a722e0da Mon Sep 17 00:00:00 2001 From: Samuel Oberhofer Date: Thu, 26 May 2022 10:07:23 +0200 Subject: [PATCH] better test data --- Uebung 1/main.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Uebung 1/main.cpp b/Uebung 1/main.cpp index 4cb0304..23f033b 100644 --- a/Uebung 1/main.cpp +++ b/Uebung 1/main.cpp @@ -6,18 +6,18 @@ int main() { Sortiment sortiment; - sortiment.addWare(new Ware("ware1", 1, 13.5, 10, 20)); - sortiment.addWare(new Ware("ware1", 4, 14.6, 15, 20)); - sortiment.addWare(new Ware("ware1", 5, 2.1, 13, 10)); - sortiment.addWare(new Ware("ware1", 6, 6.5, 10, 20)); - sortiment.addWare(new Ware("ware1", 7, 22.6, 15, 20)); - sortiment.addWare(new Ware("ware1", 5, 15.1, 13, 10)); - sortiment.addWare(new Ware("ware1", 8, 13.5, 10, 20)); - sortiment.addWare(new Ware("ware1", 9, 13.6, 15, 20)); - sortiment.addWare(new Ware("ware1", 2, 13.1, 13, 10)); + sortiment.addWare(new Ware("a", 1, 13.5, 10, 20)); + sortiment.addWare(new Ware("b", 4, 14.6, 15, 20)); + sortiment.addWare(new Ware("k", 5, 2.1, 13, 10)); + sortiment.addWare(new Ware("n", 6, 6.5, 10, 20)); + sortiment.addWare(new Ware("h", 7, 22.6, 15, 20)); + sortiment.addWare(new Ware("y", 5, 15.1, 13, 10)); + sortiment.addWare(new Ware("n", 8, 13.5, 10, 20)); + sortiment.addWare(new Ware("o", 9, 13.6, 15, 20)); + sortiment.addWare(new Ware("aa", 2, 13.1, 13, 10)); sortiment.addWare(new Ware("ware1", 5, 13.1, 13, 10)); - sortiment.sort(1); + sortiment.sort(3); for (int i = 0; i < 10; i++) { std::cout << *(sortiment.waren[i]) << std::endl;