11 2014 档案

摘要://数组的初始化方法# include# includeint main(){ int a[3][4]; int num = 0;//方法一: /* for (int i = 0; i < 3 * 4; i++) { a[i / 4][i % 4] = n... 阅读全文
posted @ 2014-11-28 21:10 天天AC 阅读(304) 评论(0) 推荐(0) 编辑
摘要://选择排序,前提必须了解找到数组中最小数和最大数的算法# include# include# includeint main(){ //利用时间随机数生成数组 time_t ts; unsigned int data = time(&ts); srand(data); ... 阅读全文
posted @ 2014-11-27 22:20 天天AC 阅读(301) 评论(0) 推荐(0) 编辑
摘要:1.首先说一下函数的副本机制看一段简单的代码 1 # include 2 # include 3 4 int add(int n, int m) 5 { 6 int z = n + m; 7 return z; 8 } 9 10 int main()11 {12 print... 阅读全文
posted @ 2014-11-27 20:27 天天AC 阅读(553) 评论(0) 推荐(0) 编辑
摘要:1.系统默认是没有中文输入的,为使用方便,先安装中文输入法。第一步:apt-get update第二步:apt-get install fcitx第三步:apt-get install fcitx-googlepinyin---------------------------------------... 阅读全文
posted @ 2014-11-17 19:01 天天AC 阅读(312) 评论(0) 推荐(0) 编辑
摘要:最近看见了这个Bool盲注挺有趣,做个记录!小技巧:substr(user(),1,1)等价于substr(user() from 1 for 1) 可以绕过逗号参考脚本模板程序: 1 import request 2 import re 3 4 pattern = re.compile(r'20... 阅读全文
posted @ 2014-11-16 20:40 天天AC 阅读(502) 评论(0) 推荐(0) 编辑
摘要:1.创建一个列表1 >>> a = [1,2,"hacker","geek",4,5,6]2 >>> a3 [1, 2, 'hacker', 'geek', 4, 5, 6]2.赋值操作1 >>> a = [1,2,"hacker","geek",4,5,6]2 >>> a3 [1, 2, 'hac... 阅读全文
posted @ 2014-11-15 15:58 天天AC 阅读(202) 评论(0) 推荐(0) 编辑
摘要:1 2 3 4 5 Document 6 12 13 14 倒计时:1015 16 29 30 View Code 阅读全文
posted @ 2014-11-13 22:32 天天AC 阅读(2193) 评论(0) 推荐(0) 编辑
摘要:1.小时钟获取当前时间并用打印在Console上2.上代码1 import time,sys,os2 while(1):3 t = time.strftime('%H:%M:%S',time.localtime(time.time()))4 sys.stdout.write(t+'\... 阅读全文
posted @ 2014-11-13 20:38 天天AC 阅读(2820) 评论(0) 推荐(0) 编辑
摘要:随着Internet的日益普及以及商务应用的逐渐丰富,网络的安全性已经直接影响着Internet发展的前景。拒绝服务攻击(DOS)和分布式拒绝服务攻击(DDOS)由于容易实施、难以防范、难以追踪、破坏力大等特点而成为黑客最为常用的攻击手段之一。分析拒绝服务攻击的原理和特点,可以发现大部分DDOS... 阅读全文
posted @ 2014-11-09 19:55 天天AC 阅读(199) 评论(0) 推荐(0) 编辑
摘要:直接上带代码 1 #define _CRT_SECURE_NO_WARNINGS//关闭安全检查 2 # include 3 # include 4 /* 5 伪随机数的生成 6 */ 7 int main1() 8 { 9 int seed = 0xffffffff,i;10 ... 阅读全文
posted @ 2014-11-08 09:44 天天AC 阅读(194) 评论(0) 推荐(0) 编辑
摘要:wchar_t的解释可以看这里:这里程序和解析: 1 # include 2 # include 3 # include//设置本地化 4 int main() 5 { 6 //常规的输出汉字 7 char s[100] = "我是大好人"; 8 printf("%c%c\n... 阅读全文
posted @ 2014-11-07 22:20 天天AC 阅读(1582) 评论(0) 推荐(0) 编辑
摘要:1.今天使用 _itoa函数,出现蛋疼的问题原来又是微软的一套。2.如何解决呢?在第一行添一句:#define _CRT_SECURE_NO_WARNINGS //关闭安全检查代码如下: 1 #define _CRT_SECURE_NO_WARNINGS 2 # include 3 # inc... 阅读全文
posted @ 2014-11-05 20:42 天天AC 阅读(732) 评论(0) 推荐(0) 编辑
摘要:1.安装1 git clone git://github.com/kennethreitz/requests.git2 cd requests3 python setup.py install2.上点威力(GET)1 >>> import requests2 >>> url = 'http://di... 阅读全文
posted @ 2014-11-02 20:34 天天AC 阅读(668) 评论(0) 推荐(0) 编辑
摘要:通过一个小例子,希望对大家的PHP程序设计有帮助PHP代码 1 $expire_time) {13 echo “expired token”;14 echo "";15 }16 echo $_token;17 echo... 阅读全文
posted @ 2014-11-02 18:04 天天AC 阅读(225) 评论(0) 推荐(0) 编辑
摘要:(1)SQL注入点contents.php?id=3(2)字段数contents.php?id=3 order by 4(3)显示位数4contents.php?id=3 union select 1,2,3,4正常(4)爆出用户名,数据库,版本号contents.php?id=3 UNION se... 阅读全文
posted @ 2014-11-02 09:52 天天AC 阅读(962) 评论(0) 推荐(0) 编辑
摘要:1.通过两张图说明(1)全局变量运行成功(2)局部变量运行失败大家都知道,重复在main函数中定义变量会报错但为什么上面定义不报错呢?得出结论: (1)全局变量定义和声明有区别 (2)局部变量定义和声明没有区别说明: 例如 int a :是定义 ,而 int a = 1 是赋值!看看函数吧!成... 阅读全文
posted @ 2014-11-01 21:35 天天AC 阅读(356) 评论(0) 推荐(0) 编辑
摘要:mysql-数据库---需要root权限读取information schema--数据库--在5以上的版本中存在三种情况:1.字符串类型查询时: ' 假 '' 真 " 假 "" 假 \ 假 \\ 真2.数组类型查询时: AND 1 真 AND 0 假 AND true 真 AND false ... 阅读全文
posted @ 2014-11-01 17:46 天天AC 阅读(138) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示