上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 152 下一页
摘要: 提要近期在写一些C++的图形代码,在调试和測试过程中都会须要在终端打印一些信息出来。之前的做法是直接用std::cout<<"Some Word"<<std::endl;这样做事实上非常的麻烦,每次都要打非常多的字母还有特殊符号,除去我要打印的内容。还须要按下28下键盘,简直不能忍!參考Unity里 阅读全文
posted @ 2017-07-20 13:01 cxchanpin 阅读(494) 评论(0) 推荐(0)
摘要: LeetCode 3_Longest Substring Without Repeating Characters 题目描写叙述: Given a string, find the length of the longest substring without repeating character 阅读全文
posted @ 2017-07-20 10:56 cxchanpin 阅读(118) 评论(0) 推荐(0)
摘要: 原型模式是创建型模式。 设计意图:用原型实例指定创建对象的类型,并通过拷贝这个原型来创建新的对象。 我们使用构建简历的样例的类图来说明原型模式。 类图: 原型模式主要用于对象的复制。它的核心是就是类图中的原型类Prototype。这里我们定义了一个抽象的原型接口,声明了用于clone自己的方法,这里 阅读全文
posted @ 2017-07-20 10:01 cxchanpin 阅读(227) 评论(0) 推荐(0)
摘要: <!-- 期望的DOM树 --> <Articles> <item> <Title>微信SDK初步结构</Title> <Description>恩..这是微信project的结构,嘻嘻~</Description> <PicUrl>http://b.hiphotos.baidu.com/image 阅读全文
posted @ 2017-07-19 21:55 cxchanpin 阅读(1821) 评论(0) 推荐(0)
摘要: 一、button回调 1. Lambda 表达式,C++11 Lambda 赋予了Cocos2d-x 3.0创建回调函数的灵活性。 auto itemNor = Sprite::create("CloseNormal.png"); auto menuItem = MenuItemSprite::cr 阅读全文
posted @ 2017-07-19 21:24 cxchanpin 阅读(898) 评论(0) 推荐(0)
摘要: 机房收费系统验收小结(一) 上一期十期的师哥师姐们这次很的热心来给我们进行机房验收的展示和解说,让 我们深入的学习、研究和改善,整个过程进行了将近四个小时,师哥师姐们都是很有 责任和热心的给我们大家指点和解说。以下是自己做的一些小小的总结作为成长过程中 的记录。 一、功能区: 1、username处 阅读全文
posted @ 2017-07-19 20:23 cxchanpin 阅读(271) 评论(0) 推荐(0)
摘要: 我仅仅想安安静静地看张图。但是系统栏上的通知、无线/SIM卡等一系列图标太碍眼了有木有,怎么能够动态隐藏呢? 模式一:隐藏掉系统状态栏,安安静静地做个美男子 //显示系统状态栏 private void showStatusBar() { View decorView = getWindow().g 阅读全文
posted @ 2017-07-19 18:49 cxchanpin 阅读(475) 评论(0) 推荐(0)
摘要: Valid Number Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true Note: It i 阅读全文
posted @ 2017-07-19 17:55 cxchanpin 阅读(241) 评论(0) 推荐(0)
摘要: 八数码问题 紫书上的简单搜索 渣渣好久才弄懂 #include<cstdio> #include<cstring> using namespace std; const int M = 1000003; int x[4] = { -1, 1, 0, 0}, y[4] = {0, 0, -1, 1}; 阅读全文
posted @ 2017-07-19 17:24 cxchanpin 阅读(270) 评论(0) 推荐(0)
摘要: 读写sd卡中的文件依照例如以下步骤:1调用Environment的getExternalStorageState()方法推断手机上是否插入了sd卡。而且应用程序具有读写SD卡的能力 //假设手机已经插入了SD卡,且具有读写sd卡的能力。以下的语句将会返回true Environment.getExt 阅读全文
posted @ 2017-07-19 15:58 cxchanpin 阅读(1572) 评论(0) 推荐(0)
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 152 下一页