char& charAt() - JanKulbaga/String-CPP GitHub Wiki
Returns a reference to the character at position index in the string.
#include <ostream>
#include "src/String.h"
int main()
{
String s = "Hello World";
char& c = s.charAt(0);
std::cout << c;
return 0;
}Output:
Hsize_t index
The character at the specified position in the string.