Strings
Lesson 8Author : GOUP
Last Updated : September, 2020
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;