C/C++系列
文章平均质量分 72
zhaojiangwei102
这个作者很懒,什么都没留下…
展开
-
关于C编程的一点感受
刚毕业的时候用了两个多月的C语言编程,总的来说对它还是很有感受的,C是一个过程式语言,没有像C++,Java等OOP语言这样那样的一系列的规则和限制;它比较灵活,简洁,高效;这些是给我的印象最深的。这是很久以前写的东西了,现在贴出来,希望对正在学习C语言的人有所帮助。关于C编程的一些感受。a.现在写程序的人很多,但大部分都是用的高级语言,其实一个优秀的程序员,一个优秀的软件工程师,都应该从原创 2006-02-16 09:10:00 · 2892 阅读 · 5 评论 -
C++Programming Guidelines
这些条目都是从上摘录二来, 在这里就不翻译了,(恐怕我一翻译,本来可以看懂的东西也看不懂了,呵呵)1. First make it work, then make it fast. This is true even if you are certain that a piece of code is really important and that it will be a princ原创 2006-10-24 13:23:00 · 2177 阅读 · 0 评论 -
UDP socket 的使用 (part 1)
这几天在看socket编程这块,呵呵,说来惭愧这些知识应该本来在大学应该掌握的,可惜在大学.....废话少说,应用socket编程时,传输协议要么是TCP,要么是UDP,至于它们之间的区别我在这里就不说了,有不清楚的可以去查下计算机网络里面的基础知识。 今天说的是使用UDP的socket,仍然是一个简单的C/S架构,我写里一个简单的测试例子,呵呵,现贴出来,供需要的人参考原创 2008-02-03 15:31:00 · 2506 阅读 · 0 评论 -
UDP socket 的使用 (part 2)
接上一篇,客户端部分的代码:[code]#include #include #include #include const int SERVERPORT= 4950; // the port users will be connecting toconst int MYPORT=4900; // the local port #define SERVER_IP "192.168.136.93"vo原创 2008-02-03 15:36:00 · 1763 阅读 · 1 评论 -
How to read calllogs on windows mobile
//Read the calllogs on windows mobile. HANDLE loghandle; //open the call log handle.HRESULT hr =PhoneOpenCallLog(&loghandle); if (hr == S_OK){ CEOID re; //finding the ref of last record.原创 2009-03-01 22:27:00 · 880 阅读 · 0 评论 -
Reusability
A principal goal of object-oriented programming is to make the code you write as reusable as possible—to have it serve many different situations and applications—so that you can avoid reimplementing,原创 2010-03-06 11:34:00 · 1010 阅读 · 0 评论