I was just wondering if I had a string, if I could treat it the following manner:
string name;
string temporary;

name = "Doctor Pepper";
temporary = name;

if(temporary[0] == 'D')
cout << "the first letter of this string is D;
If this is not posible, how can I go about doing this using strings?