寒江独钓

博客园 首页 新随笔 联系 订阅 管理

2012年10月17日 #

摘要: 1) 今天安装了CentOS 5.5,顺便安装了GCC和G++,GDB: n Yum -yinstall make //安装make n Yum -y install gcc //安装gcc编译器 n Yum -y install gcc-c++ //安装G++编译器2) 编译调式实例: (一) 在自己所建立的分区中: 1)mkdir helloworld //新建helloworld目录 2)cd helloworld //进入helloworld目录 3)vi helloworld.c //使用vi新建并打开helloworld.c文件 进入v... 阅读全文
posted @ 2012-10-17 20:38 X.W.LIU 阅读(891) 评论(0) 推荐(0) 编辑

2012年10月15日 #

摘要: 1)今天下午安装了ubuntu 11.04,不是安装在实体机器上,而是vm7上。开始老是安装不成功,于是选择vm5低版本环境就可以了。2)特别注意的是,网络配置成了NAT,这样就省了很多麻烦。开始配置成桥接,结果linux ip总是回环地址。(ifconfig命令)很是烦恼。注意一般改了ip还需重启!3)学了一个转换用户的命令:转换为root用户 sudo su - root4)学了一个关闭防火墙的命令:sudoufw disable5)开启ssh-server服务:udo apt-get install openssh-server。开始用putty怎么也连不上虚拟机上的ubuntu,结果运 阅读全文
posted @ 2012-10-15 23:06 X.W.LIU 阅读(178) 评论(0) 推荐(0) 编辑

2012年10月9日 #

摘要: #include"stdio.h"voidprint(){*}voidmain(){}在*号处加一段代码,显示出"hello,world".1)用defiene方法:#include“stdio.h”voidprint(){#definemainmain(){printf(“HelloWorld!\n”);}voidempty}voidmain(){}这是真正经典且正确的解法。这个宏构造的十分经典。voidmain(){}展开则为:voidmain(){printf(“HelloWorld!\n”);}voidempty{}2)再一个正确解法:利用全局或 阅读全文
posted @ 2012-10-09 14:31 X.W.LIU 阅读(176) 评论(0) 推荐(0) 编辑

2012年10月8日 #

摘要: #include<stdio.h>#include<process.h>void add(){ printf("**********1*********\n"); printf("**********2*********\n"); exit(1); printf("**********3*********\n"); }int main(){ add(); printf("hello world!\n"); return 1;}输出是:**********1*********"*** 阅读全文
posted @ 2012-10-08 15:23 X.W.LIU 阅读(167) 评论(0) 推荐(0) 编辑

2012年6月23日 #

摘要: (1) 编程入门-编程十万个为什么(主页下面有各种好的网站链接) http://www.bcwhy.com/?fromuid=3600(2) 黑客反病毒论坛 http://bbs.hackav.com/forum.php(3) 天子逆向 http://www.520tian.com/forum.php(4) aogo汇编小站:下面很多好的链接 http://www.aogosoft.com/(5) 博客园 http://www.cnblogs.com/(6) ITeye http://www.iteye.com/blogs/(7) csdn (8) 看雪学院(9) 红客联盟(10)游戏程序员. 阅读全文
posted @ 2012-06-23 15:52 X.W.LIU 阅读(207) 评论(0) 推荐(0) 编辑