
c++
a8467562
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
cocos2d-x 读取 文件
string path = CCFileUtils::sharedFileUtils()->fullPathFromRelativePath("episode1level2.txt"); // string path2 = CCFileUtils::sharedFileUtils()->fullPathFromRelativePath(firstElement->FirstAt原创 2013-04-12 15:04:45 · 624 阅读 · 0 评论 -
cocos2d-x jsonCpp 读取json
string path = CCFileUtils::sharedFileUtils()->fullPathFromRelativePath("episode1level2.txt"); FILE *fp =fopen(path.c_str(),"r");//根据路径打开文件 char *pchBuf = NULL;//将要取得的字符串 in原创 2013-04-12 15:27:26 · 1407 阅读 · 0 评论 -
笔记 --- string 字符串
字符串定义: char buffer[128]; char buffer[128] = "hello world"; // sizeof() 函数 取得定义 长度 128,字符串有效长度 11 char buffer[] = "hello world"; // sizeof() 函数取得定义的 长度 12,字符串有效长度 11 字符串赋值 strcpy() char buffer原创 2014-01-03 10:11:27 · 642 阅读 · 0 评论