string[i] = "a" cpp code example Example: c++ string #include <string> std::string myString = "Hello, World!";