d00_ape Posted October 5, 2004 Share Posted October 5, 2004 I would like to know if the first sign in a CString is a char or a number (e.g. ?c? or ?3?) Any tip how to find it easy? Link to comment Share on other sites More sharing options...
0 Mouton Posted October 5, 2004 Share Posted October 5, 2004 http://msdn.microsoft.com/library/default....ass_members.asp char c = string.GetAt(0); if (isdigit( c )) // char is a digit else if (isalpha( c )) // char is a letter Link to comment Share on other sites More sharing options...
Question
d00_ape
I would like to know if the first sign in a CString is a char or a number (e.g. ?c? or ?3?)
Any tip how to find it easy?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts