From 5c8d2ae4da91571f92f26d6e8352538c043e6b56 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 28 Sep 2022 13:16:16 +0200 Subject: week 5 huiswerk toegevoegd --- week-5/main.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 week-5/main.cpp (limited to 'week-5/main.cpp') diff --git a/week-5/main.cpp b/week-5/main.cpp new file mode 100644 index 0000000..a2603fa --- /dev/null +++ b/week-5/main.cpp @@ -0,0 +1,20 @@ +#include "StringWeek5.h" + +#include + +int main() { + StringWeek5 myString; + + myString.add("hallo allemaal "); + myString.add(42); + myString.add(" "); + myString.add(3.14159265358979); + + std::cout << myString.getText() << std::endl; + + myString.removeAll("all"); + + std::cout << myString.getText() << std::endl << std::endl; + + return 0; +} -- cgit v1.2.3