上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页

2014年2月8日

摘要: /* * 循环左移 */#define LeftRotate(word, bits) ( (word) > (32 - (bits)) ) 阅读全文
posted @ 2014-02-08 13:46 刘宝成 阅读(300) 评论(0) 推荐(0) 编辑
摘要: /* * 判断运行环境是否为小端 */static const int endianTest = 1;#define IsLittleEndian() (*(char *)&endianTest == 1) 阅读全文
posted @ 2014-02-08 13:44 刘宝成 阅读(170) 评论(0) 推荐(0) 编辑

2014年2月7日

摘要: 阅读全文
posted @ 2014-02-07 15:59 刘宝成 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-02-07 13:10 刘宝成 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-02-07 10:54 刘宝成 阅读(203) 评论(0) 推荐(0) 编辑

2014年1月22日

摘要: Redhat Enterprise Linux 32Redhat Enterprise Linux 64 阅读全文
posted @ 2014-01-22 19:32 刘宝成 阅读(159) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/ce123_zhouwei/article/details/6978672 阅读全文
posted @ 2014-01-22 19:16 刘宝成 阅读(129) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/ce123_zhouwei/article/details/6971544 阅读全文
posted @ 2014-01-22 19:14 刘宝成 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 学过C语言的都知道有个time函数可以计算时间,也好像知道time(NULL)返回的是一个距离1970年1月1日0时0分0秒的秒数。#include #include int main(void){ printf("%d\n", time(NULL)); return 0;}运行结果:1390351382乍一看,说法不假,还真是那么一个秒数。还有不相信的,进一步把秒数、分钟数、小时数分别取出来。#include #include int main(void){ int t, s, m, h; t = time(NULL); // 秒 s = t % 60; ... 阅读全文
posted @ 2014-01-22 09:05 刘宝成 阅读(1859) 评论(0) 推荐(0) 编辑

2014年1月20日

摘要: 引用一片博文:匈牙利命名法的衰落和建议首先要说明的是,此文只是一篇关于个人看法的随笔,不是paper。我也无意再次挑起这场旷日持久却已结束的争论。1.不太久远的历史匈牙利命名法(Hungarian Notation)最初雏形来自Charles Simonyi的一篇论文,后来Charles Simonyi进入Microsoft并担任Microsoft Office开发的要职后得到完善,并在M$内部得到推广,最终演变为当时Windows开发的一种既定编码风格。Hungarian Notation得到普及另一个人也功不可没(难辞其咎?),Charles Petzold在编写他那本极具影响力的Prog 阅读全文
posted @ 2014-01-20 19:43 刘宝成 阅读(647) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页

导航