Cuboid routeA spider, S, sits in one corner of a cuboid room, measuring 6 by 5 by 3, and a fly, F, sits in the opposite corner. By travelling on the s...
分类:
其他好文 时间:
2015-11-27 20:01:21
阅读次数:
231
(这篇随笔是 C++ Primer 5th ed. pp.39-40的摘录)Some characters, such as backspace or control characters, have no visible image. Such characters are non printab...
分类:
其他好文 时间:
2015-11-27 00:57:02
阅读次数:
171
1.mysql_real_escape_string()这个函数对于在PHP中防止SQL注入攻击很有帮助,它对特殊的字符,像单引号和双引号,加上了“反斜杠”,确保用户的输入在用它去查询以前已经是安全的了。但你要注意你是在连接着数据库的情况下使用这个函数。但现在mysql_real_escape_st...
分类:
Web程序 时间:
2015-11-26 18:32:04
阅读次数:
153
最全防止sql注入方法发布时间: 2012-04-5浏览次数:19361 分类:PHP教程(1)mysql_real_escape_string -- 转义 SQL 语句中使用的字符串中的特殊字符,并考虑到连接的当前字符集使用方法如下:$sql = "select count(*) as ctr f...
分类:
数据库 时间:
2015-11-25 00:24:55
阅读次数:
246
题目传送门题意:一个人从(0, 0)逃往(n, m),地图上有朝某个方向开炮的炮台,问最少逃脱步数分析:主要在状态是否OK,当t时刻走到(x,y),炮台是否刚好打中,因为只能是整数,所以用整除判断。题意不清楚,有些坑点。#include using namespace std;const int N...
分类:
其他好文 时间:
2015-11-23 23:21:24
阅读次数:
190
if,else,elseif指令switch,case,default,break指令list,break指令include指令import 指令noparse指令compress指令escape,noescape指令assign 指令global 指令local 指令setting 指令用户自定义...
分类:
其他好文 时间:
2015-11-23 00:55:58
阅读次数:
139
传值var brandName = "brandName=" + escape($("#Brand").val());var carModelName = "carModel=" + escape($("#carModel").val());window.location.href = "Query...
分类:
其他好文 时间:
2015-11-22 21:39:37
阅读次数:
119
escape()Don't use it, as it has been deprecated since ECMAScript v3.encodeURI()Use encodeURI when you want a working URL. Make this call:encodeURI("ht...
分类:
Web程序 时间:
2015-11-20 19:48:52
阅读次数:
155
MIPS 处理器存储器结构项目当中使用的是一颗MIPS CPU,存储空间是标准的MIPS内存分配,内存被划分为几个部分,概括如下:Boot room, boot code存储空间;iram, code 存储空间;dram,data存储空间;也就是说code和data有各自独立的存储空间,分开放置。我...
分类:
其他好文 时间:
2015-11-19 23:51:45
阅读次数:
163