
c
Rain208
c linux BSD perl lisp
学习为了让自己在这个蛋疼的年代里心中不那么太空虚.
展开
-
乱七八糟
#include #include #define null 0long re_num(char *str const){ long data; int type; for (;isspace((int)*str),islower(*str);str++); if (str == null) return -1; type = (*str ==原创 2009-03-30 08:28:00 · 693 阅读 · 0 评论 -
string to integer
/** auther cores* email cores@126.com* function turn string to a number* 2009/03/30*/int _int(const char *str) //O(n){ int data = 0, sign = 1; if (str == null) return -1; for原创 2009-03-31 08:46:00 · 753 阅读 · 0 评论 -
vbs 获取移动硬盘和usb 然后打开
Dim fso, d, dc,s,WshShell,drive,openDir Set fso = CreateObject("Scripting.FileSystemObject") Set WshShell = CreateObject("WScript.Shell") Set dc = fso.Drives For Each d in dc if d.DriveType = 1 then原创 2009-04-07 12:08:00 · 1129 阅读 · 0 评论 -
cores
C程序高级应用设计读后笔记Void _cdecl intdos(int intno, union REGS ®s, union REGS ®s); 1.__cdecl,__stdcall是声明的函数调用协议.主要是传参和弹栈方面的不同.一般c++用的是__cdecl,windows里大都用的是__stdcall(API) 2. __cdecl是C原创 2009-04-14 11:15:00 · 1156 阅读 · 0 评论 -
tcp
路由器协议1. ARP 地址解答协议 实现IP地址向物理地址的映射2.RARP 反向地址解答协议 实现物理地址向IP地址的映射3. 网络层协议IP 提供结点之间的报文传送服务, 4.ARP IP物理地址解析协议 把IP转换成物理地址MAC协议 5.RARP物理地址IP解析协议. TCP/IP是作为系统核心实现的。RARP服务是作为一种服务实现的R原创 2009-04-14 11:16:00 · 665 阅读 · 0 评论 -
c010101
求一个数中 二进制表示的时候 1的个数int i ;int cout = 0;while (i) { cout++; i=i&(i-1);} 判断一个数二进制中多少个0 同上 判断一个数是否是2个n次方int integr ;if((integer&(integer-1)) == 0) printf(“ok”);integer原创 2009-04-14 11:17:00 · 782 阅读 · 0 评论 -
LINUX无线使用
<br />http://easwy.com/blog/archives/thinkpad_t400_wireless_driver_for_debian_lenny/原创 2010-10-31 23:43:00 · 666 阅读 · 1 评论