摘要:
#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 阅读全文
摘要:
#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 阅读全文