摘要: 阅读全文
posted @ 2009-04-29 14:21 小王子 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 小侄子丢了九毛钱,甚是烦恼...TEST 阅读全文
posted @ 2009-04-26 22:01 小王子 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 我们经常用到的是#pragma comment(lib,"*.lib")这类的。#pragma comment(lib,"Ws2_32.lib")表示链接Ws2_32.lib这个库。 和在工程设置里写上链入Ws2_32.lib的效果一样,不过这种方法写的 程序别人在使用你的代码的时候就不用再设置工程settings了 阅读全文
posted @ 2009-04-15 21:15 小王子 阅读(591) 评论(0) 推荐(0) 编辑
摘要: <http://www.regexlab.com/zh/regref.htm>引言 正则表达式(regular expression)就是用一个“字符串”来描述一个特征,然后去验证另一个“字符串”是否符合这个特征。比如 表达式“ab+” 描述的特征是“一个 'a' 和 任意个 'b' ”,那... 阅读全文
posted @ 2009-04-14 10:20 小王子 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Today when i was using svn, i found that the files under the directory created by me is read-only and can not be updated by myself, i search the internet and the help document of svn, at last i found ... 阅读全文
posted @ 2009-04-08 16:34 小王子 阅读(3499) 评论(1) 推荐(0) 编辑
摘要: The unique identifier of the win32 class is the class name in one processcode: 阅读全文
posted @ 2009-04-07 18:05 小王子 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Teach Yourself Programming in Ten Years Peter Norvig Why is everyone in such a rush? Walk into any bookstore, and you'll see how to Teach Yourself Java in 7 Days alongside endless variations offering... 阅读全文
posted @ 2009-04-03 17:44 小王子 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 在程序传输的过程中,为了保持平台的兼容性(字节存储顺序),可以定义下面的宏函数,进行处理。#ifdef LITTLE_ENDIAN_HOST#define Swap16IfLE(s) \ ((CARD16) ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff)))#define Swap32IfLE(l) \ ((CARD32... 阅读全文
posted @ 2009-04-03 17:25 小王子 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 在实际项目中,用到一段源码,代码如下:switch (t){case 0:int a = 0;break;default:break;}在编译时弹出:error C2361: initialization of 'a' is skipped by 'default' label错误。最后改为switch (t){case 0:{int a = 0;break;}default:break;}编译通... 阅读全文
posted @ 2009-03-18 15:54 小王子 阅读(1430) 评论(0) 推荐(0) 编辑
摘要: 没有任何反应,按照了Sp6之后,可以正常工作了。特此记录 阅读全文
posted @ 2009-03-18 10:25 小王子 阅读(552) 评论(0) 推荐(0) 编辑