1.cocos游戏的出发点在main函数中有一句: return CCApplication::sharedApplication()->run();2.经过层层深入发现,真正的入口: bool AppDelegate::applicationDidFinishLaunching()3.类继承关系....
分类:
编程语言 时间:
2014-10-27 17:05:59
阅读次数:
274
“val” 为 16进制的字符串,想把字符串每4位的数据提取出来,转成 unsigend short类型,数据已经提取出了,但是在函数调用结束时报错: Run-Time Check Failure #2 - Stack around the variable 'usval' was corrupted。
TCHAR* pMacValue = (TCHAR*)(LPCTSTR)val;
TCHA...
分类:
其他好文 时间:
2014-10-27 14:21:13
阅读次数:
295
创建文件夹首先,创建一个叫做 sshd_ubuntu 的文件夹,用于存放我们的 Dockerfile 、脚本文件、以及其他文件。$ mkdir sshd_ubuntu
$ ls
sshd_ubuntu
$ cd sshd_ubuntu/
$ touch Dockerfile run.sh
$ ls
Dockerfile run.sh
编写 shell 脚本和 authorized_keys 文件...
分类:
其他好文 时间:
2014-10-27 12:47:36
阅读次数:
235
在介绍如何创建带 ssh 服务的基础镜像之前,我们想回顾一下之前介绍过的内容,其中提到有三种创建镜像的常用办法:从文件系统导入从现有容器使用「docker commit」提交使用 dockerfile 文件 build本章将主要介绍后面 2 种方法。使用「docker commit」提交步骤如下:$ sudo docker run -ti ubuntu:14.04 /bin/bash
#首先,使...
分类:
其他好文 时间:
2014-10-27 12:46:15
阅读次数:
315
ImplementPic. It should return a slice of lengthdy, each element of which is a slice ofdx8-bit unsigned integers. When you run the program, it will di...
分类:
其他好文 时间:
2014-10-27 06:54:12
阅读次数:
281
今天安装Mysql 按着这个①http://www.cnblogs.com/zhuyp1015/p/3561470.html来安装,却出现了这个问题卸载又从安装还是有问题,搜了好久在stackoverflow找到个链接http://stackoverflow.com/questions/119907...
分类:
数据库 时间:
2014-10-27 00:24:48
阅读次数:
190
java线程的创建
定义任务
在java中使用任务这个名词来表示一个线程控制流的代码段,用Runnable接口来标记一个任务,该接口的run方法为线程执行的代码段。
public class LiftOff implements Runnable {
protected int countDown = 10;
private static int ta...
分类:
编程语言 时间:
2014-10-26 17:04:09
阅读次数:
213
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant...
分类:
其他好文 时间:
2014-10-26 14:25:50
阅读次数:
177
转自:http://blog.csdn.net/tulituqi/article/details/8038923一、分支在Robotframework2.7.4之前的版本,我们要想写IF比较容易,可以直接使用Run keyword if 就行了,但是如果想写ELSE IF和ELSE,就不是那么方便了...
分类:
其他好文 时间:
2014-10-26 11:42:11
阅读次数:
250
需求:我们知道,asp.net控件中的button控件,默认是开启了自动回发的,而有时候,我们不想刷新整个界面,而只想局部刷新,可页面中又偏偏用到了.net button控件。
虽然我很讨厌.net控件,但有时候在系统对性能要求不高的情况下,为了偷懒,使用.net控件是无可厚非的。
注意下面代码中红色标注的代码。
aspx页面代码(只写了关键代码):
btnSearch" run...
分类:
Web程序 时间:
2014-10-25 23:03:46
阅读次数:
239