summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.cpp b/main.cpp
index b951358..dd4810d 100644
--- a/main.cpp
+++ b/main.cpp
@@ -5,24 +5,24 @@ int main(int argc, char **argv)
MyString mystr("alpha");
if (mystr.isSubstring("ph"))
{
- cout << "true" << endl;
+ std::cout << "true" << std::endl;
}
else
- cout << "false" << endl;
+ std::cout << "false" << std::endl;
MyString mystr1 = ", beta";
MyString mystr2 = ", charlie";
MyString mystr3 = ", delta";
mystr.concat(mystr1).concat(mystr2).concat(mystr3);
- cout << mystr << endl;
+ std::cout << mystr << std::endl;
MyString mystr4 = "hello";
mystr4.concat(", world!").concat(" goodbye");
- cout << mystr4 << endl;
+ std::cout << mystr4 << std::endl;
MyString mystr5 = "bro";
- cout << mystr5 << endl;
+ std::cout << mystr5 << ", char at 1 is: " << mystr5[1] << std::endl;
return 0;
}