首先假设有6个楼层。最初,电梯在顶层,先实现电梯从顶层到第一层的过程: #include <iostream>#include<stdio.h>#include<string.h>#include<time.h>#include<stdlib.h>#include<windows.h>using n ...
分类:
编程语言 时间:
2017-03-21 10:50:27
阅读次数:
249
#include <cctype>(转,归纳很好) 头文件描述: 这是一个拥有许多字符串处理函数声明的头文件,这些函数可以用来对单独字符串进行分类和转换; 其中的函数描述: 这些函数传入一个等价于字符串的整数作为参数,之后返回一个可以是其他字符或者一个代表布尔值的值,一个整数的0意味着假,一个与不同 ...
分类:
其他好文 时间:
2017-03-15 00:34:39
阅读次数:
194
Windows Cracker 消息拆析宏 可以为消息进行参数分解 无需记住或查阅资料来了解WParam和lParam的意义 可以忘记旧的消息处理方式:switch/case 不适合于大型复杂的需要处理大量消息的应用: coding is slow and program debugging and ...
There are two ways to compute the gradient: A slow, approximate but easy way (numerical gradient), and a fast, exact but more error-prone way that req ...
分类:
其他好文 时间:
2017-03-12 13:11:24
阅读次数:
117
暂停是游戏中经常出现的功能,而Unity3D中对于暂停的处理并不是很理想。一般的做法是将Time.timeScale设置为0。Unity的文档中对于这种情况有以下描述; The scale at which the time is passing. This can be used for slow ...
分类:
编程语言 时间:
2017-03-08 12:35:36
阅读次数:
207
传送门 水题不解释 这道题的主要目的在于记录一个枚举子集的技巧 ...
分类:
其他好文 时间:
2017-03-08 01:12:01
阅读次数:
210
这篇写的很好 http://blog.chinaunix.net/uid-24774106-id-3065234.html UNIX系统编程,这本书中有大量的重启系统调用,例如下面的例子:选自P50, 还有对read,write的重启操作。 UNP volume1中提到slow system cal ...
分类:
其他好文 时间:
2017-03-02 23:47:36
阅读次数:
213
str:字符串 str.capitalize()首字母变大写: >>> ret="nanhua">>> s=ret.capitalize()>>> s'Nanhua' str.center()指定字符串左右居中(可指定长度及填充字符,默认空格): >>> ret="nanhua">>> s=ret. ...
分类:
编程语言 时间:
2017-02-26 19:13:53
阅读次数:
206
Mysql的日志种类查询日志:general_log慢查询日志:log_slow_querles错误日志:log_error,log_warnings二进制日志:binlog中继日志:relay_log事务日志:innodb_log查询日志记录查询语句,日志存储位置:文件:file表:table(mysql.general_log)general_log={ON|OFF}general..
分类:
数据库 时间:
2017-02-22 23:15:13
阅读次数:
286
题目: 链接: http://leetcode.com/problems/intersection-of-two-linked-lists/ 2/19/2017, Java 一开始的思路是,借用判断cycled linked list来。先从nodeA出发遍历,把最后一个node的next设为nod ...
分类:
其他好文 时间:
2017-02-20 13:48:56
阅读次数:
140