15:43 2015-04-07004、单词吗?什么是英语单词?只是要连着写,中间没有空白符(空格、换行、Tab、等)的,都是英语单词,是吗?是的,英国佬估计就是这样想的。在29本著作,18个作者,四百六十万个单词中,统计出最常用的一千个单词中,居然包括这些:don'tI'llit'scan'tI'...
分类:
其他好文 时间:
2015-04-08 00:47:29
阅读次数:
428
I just don't want to regret it !
#include
#include
#include
#include
using namespace std;
int main()
{
vectorc{1, 2, 3, 4, 5};//默认排好了序
auto beg = c.begin();auto end = c.end();//搜索...
分类:
编程语言 时间:
2015-04-07 21:40:07
阅读次数:
125
安装完wampServer 2.5,新建了一个虚拟目录,xhp/ 访问xhp/index.php报You don't have permission to access按照以前的经验,只要打开/wamp/bin/apache/apache2.2.2/conf/httpd.conf,修改一下这里配置就...
分类:
其他好文 时间:
2015-04-07 15:11:28
阅读次数:
121
相信看过极光IM简介的朋友们,对JMessage已经有初步的了解。还没有了解过的朋友们,请移步JMessage指南:http://docs.jpush.io/guideline/jmessage_guide/或者http://jpush.blog.51cto.com/6164982/1628956现在,我们来用7个步骤,每个步骤若干简单的操作,就可快速自制IM。Don..
分类:
其他好文 时间:
2015-04-04 19:51:31
阅读次数:
161
MongoDBdidn’t provides any command to create “database“. Actually, you don’t need to create it manually, because, MangoDB will create it on the fly, d...
分类:
数据库 时间:
2015-04-03 16:49:13
阅读次数:
175
前几天装一个linux 企业版5.0安装了apache,打开测试页面的时候出现如下错误:ForbiddenYou don't have permission to access /index.html on this server.开始我以为我配置出错,花半天时间都没有搞定,今天终于搞定了.原因:i...
分类:
数据库 时间:
2015-04-01 23:21:15
阅读次数:
321
结论: 从面相对象编程的角度考虑,拷贝构造函数调用重载赋值操作符,重载赋值操作符调用拷贝构造函数的写法都是没有意义的。应该避免。Don't try to implement one of the copying functions in terms of the other. Instead, pu...
分类:
编程语言 时间:
2015-04-01 15:14:08
阅读次数:
141
第三步:提高代码复用率经过重构的第一步,我们将令人头疼的大函数分解成了大小适中的一个个小函数,经过重构第二步,我们将无所不能的大对象拆分成了功能内聚的一个个小对象。随后,我们需要考虑的问题就是优化我们的代码了。1. DRY原则:Don't Repeat Yourself.2. 如何识别相似或相近功能...
分类:
其他好文 时间:
2015-04-01 15:06:14
阅读次数:
124
I just don’t want to regret it:
1.无限重复动作RepeatForever(喂,我还没让你停呢~)
当我们想重复一个动作时,我们不可能一直都runAction,这时我们可以使用RepeatForever来帮助我们达到我们想要的效果。
RepeatForever的使用非常简单,...
分类:
其他好文 时间:
2015-03-31 18:10:27
阅读次数:
328
I just don’t want to regret it:
1. 你想去哪,你想走多远
——MoveTo和MoveBy:
MoveTo(你想去哪)它的作用也就是从某个地方到另一个地方,比如A(x1,
y1),B(x2, y2);当我们想把精灵从A移动到B点时,我们就可以用MoveTo(A MoveTo B,就是这么理解啦~)。
...
分类:
其他好文 时间:
2015-03-31 18:08:51
阅读次数:
164