Search code examples
cocos2d-x

Comapring Character of CCString with Other CCString


How can I compare each character of CCString with each character of other CCString in cocos2dx ?

Thank you


Solution

  • Cocos2dx is based on CPP right? Just get the string to char array and then use ordinary string comparison functions such as strcmp..