摘要:
1 #include 2 #include 3 #include 4 void getmemory(char *p) 5 { 6 p=(char *) malloc(100); 7 strcpy(p,"hello world"); 8 } 9 10 11 in... 阅读全文
摘要:
#include #include using namespace std;void get_size(char str[100]){ cout<<"size in get_size "<<sizeof(str)<<endl; }int main(){ cha... 阅读全文
摘要:
#include #include using namespace std;class emp{ protected: string name; public: emp(){} virtual ~emp(){} virtual void print() = 0; };class emp... 阅读全文