摘要: 给自己做一个笔记,来自csdn博客http://blog.csdn.net/hguisu/article/details/7453390慢慢学习吧,路还很长! 阅读全文
posted @ 2014-04-06 21:39 一起吹吹风 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/rain-lei/p/3590561.html最近偶尔看到一篇关于Linus Torvalds的访问,大神说大部分人都不理解指针。假设被要求写一段链表删除节点的程序,大多数的做法都是跟踪两个指针,当前指针cur和其父节点pre,这种实现很容易理解,但是并没有用到指针的精髓。Linus是怎么写的呢,且看源代码//链表之two star programming#include typedef struct node{ int value; struct node *next;}listNode; listNode *insert(l... 阅读全文
posted @ 2014-04-04 21:05 一起吹吹风 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 转自http://blog.sina.com.cn/s/blog_620475be0100mavz.html先从一个最小的MFC程序说起。//TheminimalMFCprogram************************************************#includeclassCMinApp:publicCWinApp{public:virtualBOOLInitInstance();};//重载的InitInstance()实现BOOLCMinApp::InitInstance(){//分配C 窗口对象CFrameWnd*pFrame=newCFrameWnd(); 阅读全文
posted @ 2014-04-02 21:12 一起吹吹风 阅读(197) 评论(0) 推荐(0) 编辑