M
Michael Lawson
I may be a bit ignorant, or I haven't searched hard enough,
but how exactly is one to grab the finger character of a
string variable? The only way I know how to at the moment
looks a bit ugly, ie: string.cstr()[0]; Is there another
way I can do this? I figure if it *looks* ugly, then there
probably is a better way. And as a result, I've a tendency
to use C-style strings in C++ because I can't find a better
way of doing this, or scanning each individual letter of a
string in some occasions.
Thanks much,
Michael
but how exactly is one to grab the finger character of a
string variable? The only way I know how to at the moment
looks a bit ugly, ie: string.cstr()[0]; Is there another
way I can do this? I figure if it *looks* ugly, then there
probably is a better way. And as a result, I've a tendency
to use C-style strings in C++ because I can't find a better
way of doing this, or scanning each individual letter of a
string in some occasions.
Thanks much,
Michael