In the std::string class, the [] operator gives element access. So, if you had a string called "temp1", you could access the second element (letter) by saying "temp1[1]" - notice that the element index starts from zero, so to access the Nth element you need to give the index of n-1.