2016年4月21日

求最大子数组

摘要: 求最大子数组非递归实现(输出最大子数组的和) #include <iostream> #include "stdlib.h" #include <string.h> #include <string> #include <cstring> #include <fstream> #include <s 阅读全文

posted @ 2016-04-21 09:17 W.C 阅读(173) 评论(0) 推荐(0) 编辑

基本问题2

摘要: 1:string字符串如何读取带空格的字符串,char型字符串如何读取带空格的字符串 读取string字符串 int main() { string str1; getline(cin,str1); cout<<str1<<endl; system("pause"); return 0; } 读取c 阅读全文

posted @ 2016-04-21 09:13 W.C 阅读(192) 评论(0) 推荐(0) 编辑

基本问题1

摘要: 1:string字符串和char arr[20]数组读取带空格的字符串 string字符串: string str; getline(cin,str); cout<<str<<endl; char arr[20]数组: char arr[20]; cin.getline(arr,19); cout< 阅读全文

posted @ 2016-04-21 09:12 W.C 阅读(105) 评论(0) 推荐(0) 编辑

cocos2dx定义规范

摘要: 一:.h中定义区域 1:首先根据不同的层进行定义,然后在具体的场景层中定义 2:数据定义,函数定义 数据定义: 1:定义根节点,定义按钮,定义精灵,定义其他UI控件 2:定义场景中的UI控件,定义场景中的其他部分 3:定义具体的数据结构等 4:标志量定义 注:跟某个控件有紧密关系的数据或其他直接定义 阅读全文

posted @ 2016-04-21 09:11 W.C 阅读(171) 评论(0) 推荐(0) 编辑

cocos2dx基本ui操作2——基本控件创建与使用(.cpp文件操作)

摘要: 1:progressTimerBar进度条创建与使用 auto progress=ProgressFromTo::create(1, 100, 0); //设置时间,起始进度与终止进度 progress_timeBar=ProgressTimer::create(Sprite::create("ti 阅读全文

posted @ 2016-04-21 09:08 W.C 阅读(247) 评论(0) 推荐(0) 编辑

cocos2dx基本ui操作2——基本控件获取(.cpp文件操作)

摘要: 一:init函数中 根结点获取与放置(屏幕适配),其余图层放置相同 rootNode = CSLoader::createNode("MainScene.csb"); rootNode->setPositionX((visibleSize.width-640)/2); addChild(rootNo 阅读全文

posted @ 2016-04-21 08:56 W.C 阅读(283) 评论(0) 推荐(0) 编辑

cocos2dx基本ui操作1(.h文件操作)

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2016-04-21 08:48 W.C 阅读(1) 评论(0) 推荐(0) 编辑

导航