I was just wondering if I had a string, if I could treat it the following manner:
If this is not posible, how can I go about doing this using strings?Code:string name;
string temporary;
name = "Doctor Pepper";
temporary = name;
if(temporary[0] == 'D')
cout << "the first letter of this string is D;
Thanks.
