2007年10月11日

static_cast, const_cast,dynamic_cast和reinterpret_cast

摘要: http://blog.csdn.net/wfwd/archive/2006/05/30/763785.aspxstatic_cast在功能上基本上与C风格的类型转换一样强大,含义也一样。它也有功能上限制。例如,你不能用static_cast象用C风格的类型转换一样把struct转换成int类型或者把double类型转换成指针类型,另外,static_cast不能从表达式中去除const属性,因为... 阅读全文

posted @ 2007-10-11 18:11 cutepig 阅读(528) 评论(0) 推荐(0) 编辑

泛化(Generalization) 聚合(aggregation)组合(composition)依赖(Dependency)

摘要: 泛化(Generalization) 图表 1 泛化 在上图中,空心的三角表示继承关系(类继承),在UML的术语中,这种关系被称为泛化(Generalization)。Person(人)是基类,Teacher(教师)、Student(学生)、Guest(来宾)是子类。 若在逻辑上B是A的“一种”,并且A的所有功能和属性对B而言都有意义,则允许B继承A的功能和属性。 例如,教师是人,Teacher... 阅读全文

posted @ 2007-10-11 17:55 cutepig 阅读(4157) 评论(0) 推荐(1) 编辑

c++多态的实现 VC++消息映射的实现

摘要: http://blog.csdn.net/gxnu/archive/2007/09/26/1801870.aspx 多态是如何利用这个虚函数表实现的呢?看下面的代码: struct Super { int data; virtual int add(int i){return i;}; virtual string toString()=0; }; class Sub... 阅读全文

posted @ 2007-10-11 13:09 cutepig 阅读(4169) 评论(0) 推荐(0) 编辑

2007年10月7日

ISA接口介绍

摘要: http://www.laogu.com/my/tcp3.htm —— 有ISA的引脚图。 阅读全文

posted @ 2007-10-07 13:14 cutepig 阅读(978) 评论(1) 推荐(0) 编辑

2007年10月4日

iptables NAT+squid实现透明代理

摘要: iptables 设置(NAT和ip限制,80转发,需要有ip文件ip2.txt): intra="192.168.0.0/24"myip="219.217.235.73"myDNS="202.118.224.101:53"echo 1 > /proc/sys/net/ipv4/ip_forward#清空规则/sbin/iptables -F /sbin/iptables -t nat -F/sb... 阅读全文

posted @ 2007-10-04 14:47 cutepig 阅读(4329) 评论(0) 推荐(0) 编辑

awk用法小结

摘要: awk用法小结http://www.chinaunix.net/jh/24/691456.html awk 用法:awk ' pattern {action} ' 变量名 含义 ARGC 命令行变元个数 ARGV 命令行变元数组 FILENAME 当前输入文件名 FNR 当前文件中的记录号 FS 输入域分隔符,默认为一个空格 RS 输入记录分隔符 NF 当前记录里域个数 NR 到目前为止记录... 阅读全文

posted @ 2007-10-04 10:41 cutepig 阅读(460) 评论(0) 推荐(0) 编辑

Linux 设备驱动 Edition 3

摘要: Linux 设备驱动 Edition 3By Jonathan Corbet, Alessandro Rubini, and Greg Kroah-Hartman 由 quickwhale 翻译的简体中文版 V0.1.0 2006-6-2 http://www.deansys.com/doc/ldd3/index.html 目录 1. 第一章 设备驱动简介 1.1. 驱动程序的角色 1... 阅读全文

posted @ 2007-10-04 10:10 cutepig 阅读(381) 评论(0) 推荐(0) 编辑

2007年10月3日

X Window研究笔记(1)~22

摘要: X Window研究笔记(1)~22 http://blog.csdn.net/absurd/archive/2007/09/11/1781351.aspx 阅读全文

posted @ 2007-10-03 21:19 cutepig 阅读(811) 评论(0) 推荐(0) 编辑

linux usb驱动源代码分析

摘要: http://blog.csdn.net/fudan_abc/archive/2007/06.aspxhttp://edu.lilacbbs.com/bbstcon.php?board=Linux&gid=19451 3751 marvel Oct 3 ● Linux那些事儿之我是U盘--引子 3752 marvel Oct 3 ● Linux那些事儿之我是U盘(1)小城故事 ... 阅读全文

posted @ 2007-10-03 21:03 cutepig 阅读(4141) 评论(1) 推荐(0) 编辑

IC设计,verilog学习链接

摘要: 针对C语言编程者的Verilog开发指南实例from http://news.zfa.cn/indexpage/zzym/zzym.jsp?id=1614&name=cpsjverilog/VHDL设计经验点滴 http://www.blog.edu.cn/user2/rickywu/archives/2006/1078817.shtml学EDA的同学可以通过开源提高自己 http://www.b... 阅读全文

posted @ 2007-10-03 20:08 cutepig 阅读(277) 评论(0) 推荐(0) 编辑

sshd配置

摘要: 允许root登陆 cat /etc/ssh/sshd_config PermitRootLogin yes 以底下的方式來啟動 ssh 服務: /etc/rc.d/init.d/sshd start 或者配置ntsysv让自动启动 阅读全文

posted @ 2007-10-03 16:47 cutepig 阅读(875) 评论(0) 推荐(0) 编辑

linux下pppoe服务器配置

摘要: 终于搞明白pppoe + NAT 作上网服务器的原理了,哈哈哈。rp-PPPoE设置: 检查rppppoe装上没有(redFlag已经装上) rpm -qa | grep -i "pppoe" /etc/ppp/pap-secrets配置如下: #client server secret IP address"usr" * "123" * /etc/ppp/chap-secrets的配置和pap-... 阅读全文

posted @ 2007-10-03 13:52 cutepig 阅读(11612) 评论(2) 推荐(0) 编辑

2007年9月30日

一些不错的软件

摘要: http://hi.baidu.com/srbga 谈一下我还留着的软件(1)2006-09-19 22:49首先看看现在还没uninstall的吧.........按在program里的顺序... 1. ACDSee 事实上.....好象这几年我居然没怎么用它....每次都用的windows自带....所以我对它存在的必要产生了一点点怀疑,虽然我小时侯一直用... 2. WinRAR 不说它了... 阅读全文

posted @ 2007-09-30 22:29 cutepig 阅读(2321) 评论(3) 推荐(0) 编辑

python for 初学者

摘要: http://hi.baidu.com/srbga/blog/item/46ced42ab33ec02cd42af1c5.html http://hi.baidu.com/srbga/blog/item/46ced42ab33ec02cd42af1c5.html 阅读全文

posted @ 2007-09-30 21:56 cutepig 阅读(213) 评论(0) 推荐(0) 编辑

百度之星

摘要: http://gcdn.grapecity.com/cs/forums/permalink/4418/4418/ShowThread.aspx 2007百度之星初赛第一场试题 http://topic.csdn.net/t/20061107/11/5138789.html# set_intersection set_difference set_union set_... 阅读全文

posted @ 2007-09-30 21:13 cutepig 阅读(788) 评论(1) 推荐(0) 编辑

2007年9月27日

linux下编程IDE环境

摘要: linux下编程IDE环境 Eclipse http://www.linuxdby.com/html/linux/other/20070509/40014.html windows下使用方法: 安装j2sdk-1_4_2_09-nb-4_1-win-ml.exe (其实装上后就有netbeans也能用,中文教程http://gceclub.sun.com.cn/NetBeans/tutorial... 阅读全文

posted @ 2007-09-27 21:17 cutepig 阅读(741) 评论(0) 推荐(0) 编辑

2007年9月26日

Question of the Day: Microsoft | Database, Multiple Questions in One

摘要: Question of the Day: Microsoft | Database, Multiple Questions in One from CareerCup by Jason Yip HR: SQL What is an index? Explain cluster index. What are the different types of joins. Explain. Explai... 阅读全文

posted @ 2007-09-26 20:07 cutepig 阅读(218) 评论(0) 推荐(0) 编辑

模式识别中的核方法

摘要: 模式识别中的核方法 Kernel Methods for Pattern Analysis 你说的那本书,好像评价还不错的,好像还有 1. Scholkopf, B. and A.J. Smola, Learning with Kernels. 2002: MIT Press Cambridge, Mass. 644. 2. Herbrich, R., Learning ker... 阅读全文

posted @ 2007-09-26 09:27 cutepig 阅读(684) 评论(0) 推荐(0) 编辑

2007年9月25日

关于串口发送短信

摘要: 关于串口发送短信 可以用超级终端调试 推荐串口监视软件 Serial Monitor 例子程序: http://www.vckbase.com/code/downcode.asp?id=2411 “通过串口收发短消息”的Q&A汇编: http://www.vckbase.com/document/viewdoc/?id=1131 指令: "AT+CSCA?"指令查询服务中心号码 "AT+CSCA=... 阅读全文

posted @ 2007-09-25 12:02 cutepig 阅读(529) 评论(0) 推荐(0) 编辑

2007年9月19日

C#笔记

摘要: C#笔记 读取网页: using System.Net; using System.Text; using System.Web; using System.IO ; public void getPageContent(String url) { WebRequest request = WebRequest.Create(url); try { //... 阅读全文

posted @ 2007-09-19 12:55 cutepig 阅读(618) 评论(6) 推荐(0) 编辑

导航