我们知道,在对话框中,屏蔽ESC键自己主动退出能够选择重载OnCancel为哑函数的方法: void CXXXXDlg::OnCancel() { // TODO: Add your specialized code here and/or call the base class //CD...
分类:
其他好文 时间:
2014-07-22 22:56:35
阅读次数:
194
鉴于本次RC版对SAE做了一系列的兼容,且在SAE上部署还是与OT有略微不同的,所以整理了一下具体的部署方法。 1.下载网站安装包:here? 2.在本地安装ThinkOX 3.安装完毕后,将所安装好的网站数据库导出备用 4.确保...
分类:
其他好文 时间:
2014-07-21 10:14:32
阅读次数:
194
The Triwizard Tournament's third task is to negotiate a corridor of many segments, and reach the other end. The corridor is N segments long. The ith s...
分类:
其他好文 时间:
2014-07-21 09:02:45
阅读次数:
217
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
click to show spoilers.
Have you thought about this?
Here are some good questions to ask before c...
分类:
编程语言 时间:
2014-07-20 22:12:03
阅读次数:
251
1.为什么要清除浮动在网页中,DIV一般都是嵌套的,外面称为窗口,里面的DIV存放内容,如果不浮动的话,如下面这段代码 Content here 本来我们期望看到的是,外面背景为#ccc的层包含了里面背景为#333的层,但实际上,外面的层在显示的时候高度几乎为0,这就是因为里面的层用了浮动,但如果....
分类:
Web程序 时间:
2014-07-19 21:37:40
阅读次数:
248
Insert title here
$(function(){
//点击打开文件选择器
$("#upload").on('click', function() {
$('#fileTo...
分类:
其他好文 时间:
2014-07-19 02:26:46
阅读次数:
222
Summation of Four Primes
题目链接:click here~
题目要求:
给出一个整数要你将其拆成由四个素数组成的数。如果,不能拆则输出“Impossible.”
思路解析:
根据题目给出的两个猜想,可以得到。如果,一个数是奇数的话则其一定可以拆成一个奇数+一个偶数的形式,而一个数是偶数的话可拆的就有两种奇数+奇数/偶数+偶...
分类:
其他好文 时间:
2014-07-18 12:35:29
阅读次数:
258
Description
Some of you may have played a game called 'Blocks'. There are n blocks in a row, each box has a color. Here is an example: Gold, Silver, Silver, Silver, Silver, Bronze, Bronze, Bronze, Go...
分类:
其他好文 时间:
2014-07-18 11:23:05
阅读次数:
280
ping -n 1 -w 10000 224.0.0.0 模拟sleep wget ifconfig.me/ip -q -O - 获取你的外部ip地址 wget -S -O/dev/null "INSERT_URL_HERE" 2>&1 | grep Server 查看服务器软件(比如 Apache...
分类:
其他好文 时间:
2014-07-16 16:58:53
阅读次数:
186
- (id)initWithFrame:(CGRect)frame{ if(self= [superinitWithFrame:frame]) { // Important here, rotate THIS UIView [selfsetCenter:CGPointMake(160...
分类:
其他好文 时间:
2014-07-16 15:26:52
阅读次数:
149