is there any function for mi to filter a string like "makniaf19"
i wan to like filter the words and the number to two different variable
is there any function for mi to filter a string like "makniaf19"
i wan to like filter the words and the number to two different variable
No, not a standard function. But you can write one that would read the string in character by character and based on where it finds a number you can extract that portion out, then use itoa()/ltoa() to convert it and then load it into your numerical variable. Then extract the remaining portion of the string into your new char variable.
becoz im using the CString function so i cannot use the itoa() funtion
or is there way for mi to check for every words in the sentence??
If you want to use CString(and I think you should it is very easy and powerfull) You need to look through the methods used to work with CString. There are plenty of ways to get CString to do what you want..if you just tried on your own alittle bit before you give up.
Did you try it? CString allows an explicit cast to LPCSTR, just pass itoa or atoi the CString object, the methods and operators within the object will handle the rest.becoz im using the CString function so i cannot use the itoa() funtion
or is there way for mi to check for every words in the sentence??