Check out example codes for "c++ first letter of string". It will help you in understanding the concepts better.

Code Example 1

// string::at
#include <iostream>
#include <string>

int main ()
{
  std::string str ("Test string");
  for (unsigned i=0; i<str.length(); ++i)
  {
    std::cout << str.at(i);
  }
  return 0;
}

Learn ReactJs, React Native from akashmittal.com