摘要: 1.赋值方式string str = "hello world";char*b="helllo2";2.转化1char*b="helllo2";string m=b;3.转化2string str = "hello world";const char* u;u=str.c_str() 即str.c_str() = u;4.CCString是Cocos2d-x自己封装的字符串类,只要是Cocos2d-x封装的类,都能自动管理内存,一般不需要我们关心。CCString有个getCString函数,可以获取const c 阅读全文
posted @ 2013-09-28 14:12 古木木 阅读(765) 评论(0) 推荐(0)