1

implement operator* for string

This commit is contained in:
2022-08-01 19:36:35 +02:00
parent 3b3bf662ca
commit a7e7e65468
2 changed files with 32 additions and 0 deletions

View File

@ -26,6 +26,10 @@ void StringDemo::run() {
str3 += " World";
kout << str3 << endl;
kout << "Hello World *= 3" << endl;
str3 *= 3;
kout << str3 << endl;
kout << "String iterator!" << endl;
for (const char c : str1) {
kout << c << " ";