会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
lzihua
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
2012年3月17日
CFree 运行出现abnormal program termination
摘要: CFree 运行出现abnormal program termination解决办法:卸载,删除注册表HKEY_CURRENT_USER\Software\C-Free重新安装。
阅读全文
posted @ 2012-03-17 20:41 lzihua
阅读(1208)
评论(0)
推荐(0)
编辑
CFree 提示main must return int
摘要: void main()改为int main()
阅读全文
posted @ 2012-03-17 20:31 lzihua
阅读(617)
评论(0)
推荐(0)
编辑
CFree 提示no newline at the end of file
摘要: 编写完程序加个空行。即代码21行,实际代码20行。
阅读全文
posted @ 2012-03-17 20:28 lzihua
阅读(328)
评论(0)
推荐(0)
编辑
2012年3月8日
策略模式
摘要: 策略模式定义了一系列的算法,并将每一个算法封装起来,而且使它们还可以相互替换。从这些类中抽象出公共接口。策略模式让算法独立于使用它的客户而独立变化。//图书折扣策略的抽象类class CBookStrategy{public: virtual double GetDiscount()=0; CBookStrategy() { }};//无折扣class CNonDiscount: public CBookStrategy{private: int m_BookCount; double m_BookPrice;public: CNonDiscount(int BookCount,d...
阅读全文
posted @ 2012-03-08 12:48 lzihua
阅读(149)
评论(0)
推荐(0)
编辑
2012年3月7日
用户界面与业务逻辑的分离
摘要: 摘自《Visual C++视频技术方案宝典》1.1.1 1 class CStuff 2 { 3 public: 4 CStuff(); 5 virtual ~CStuff(); 6 private: 7 int ID; //工号 8 CString Name; //名称 9 CString Sex; //性别10 CString Knowledge; //学历11 float Wage; //工资12 public:13 int GetID() c...
阅读全文
posted @ 2012-03-07 16:04 lzihua
阅读(391)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
公告