how to get a letter from the users string in c++

C++
string letters = "ABC";
char letterN = letters[0];
Source

Also in C++: