上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 63 下一页
摘要: #include <iostream>using namespace std;template <class T>class Assistant{private:friend T;Assistant(){};~Assistant(){};};class Animal:virtual public Assistant<Animal>{public:Animal(){};~Animal(){};void ShowType();void Eat();void Walk();void Sleep();};void Animal::ShowType(){cout &l 阅读全文
posted @ 2013-06-12 19:22 Predator 阅读(156) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;void ChangeArray(int p[]);char * StrCpy(char *pSource);void main(){int datas[4]={ 1, 2, 3, 4};ChangeArray(datas);for(int i =0; i> tem;}char * StrCpy(char *pSource){int i= 0;int len = 0;while(pSource[i]!='\0'){i++;len++;}char *pDestination = new char[len + 1];i 阅读全文
posted @ 2013-06-12 14:46 Predator 阅读(266) 评论(0) 推荐(0) 编辑
摘要: #pragmaonce #ifdefDLL_IMPLEMENT#defineDLL_API__declspec(dllexport)#else#defineDLL_API__declspec(dllimport)#endif namespaceMyDLL{ //导出类 classDLL_APIMyDLL { public: MyDLL(); ~MyDLL(); intadd(intx,inty);//简单方法 };}extern"C"DLL_APIintadd(intx,inty);#include<iostream>#include<Windows.h& 阅读全文
posted @ 2013-06-06 19:26 Predator 阅读(310) 评论(0) 推荐(0) 编辑
摘要: #pragmaonce #ifdefDLL_IMPLEMENT#defineDLL_API__declspec(dllexport)#else#defineDLL_API__declspec(dllimport)#endif namespaceMyDLL{ //导出类 classDLL_APIMyDLL { public: MyDLL(); ~MyDLL(); intadd(intx,inty);//简单方法 };}#include"MyDLL.h"#include<iostream>usingnamespacestd;voidmain(){ MyDLL::My 阅读全文
posted @ 2013-06-06 18:16 Predator 阅读(139) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 63 下一页