diff options
Diffstat (limited to 'oop1w5/main.cpp')
-rw-r--r-- | oop1w5/main.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/oop1w5/main.cpp b/oop1w5/main.cpp new file mode 100644 index 0000000..a2603fa --- /dev/null +++ b/oop1w5/main.cpp @@ -0,0 +1,20 @@ +#include "StringWeek5.h" + +#include <iostream> + +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; +} |