diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; } |