Strings
Lesson 8Author : 🦒
Last Updated : November, 2017
Video Code
// #include <string>
string greeting = "Hello";
// indexes: 01234
cout << greeting[0] << endl;
cout << greeting.find("llo") << endl;
cout << greeting.substr(2) << endl;
cout << greeting.substr(1, 3) << endl;