上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 63 下一页
摘要: #pragmaonce#ifndefAXXF_XXXX_ISUBJECT_H#defineAXXF_XXXX_ISUBJECT_H#include"IObserver.h"classIObserver;classISubject{public: ISubject(){} virtualchar*GetContent()const=0; virtualvoidAdd(IObserver*observer)=0; virtualvoidDelete(IObserver*observer)=0; virtualvoidTalk()=0; ~ISubject(){}}; #endi 阅读全文
posted @ 2013-06-13 19:35 Predator 阅读(151) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;void GetMaxValue(int *pDatas, int len);void main(){int datas1[6] = {1, -2, 3, 5, -3, 2};//输出子数组最大值为8//该子数组为:3 5;GetMaxValue(datas1, 6);//输出子数组最大值为:9 //该子数组为:3 5 -1 2int datas2[6] = {0, -2, 3, 5, -1, 2};GetMaxValue(datas2, 6);//输出子数组最大值为:-2//该子数组为: -2int d 阅读全文
posted @ 2013-06-13 00:51 Predator 阅读(449) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;void main(){int *p,**pp;int n = 100;p = &n;pp = &p;cout << *p << " " << **pp << endl;//输出 100 100int tem;cin >> tem;} 阅读全文
posted @ 2013-06-12 20:54 Predator 阅读(133) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;class Animal{private:intm_nTotal;Animal(){m_nTotal = 100;};public: ~Animal(){};public :static Animal Instance(){Animal instance = Animal();return instance;}void ShowType();void Eat();void Walk();void Sleep();};void Animal::ShowType(){cout << "A 阅读全文
posted @ 2013-06-12 19:37 Predator 阅读(115) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 63 下一页