摘要:
#include <iostream> using namespace std; class AHasPtr {public: AHasPtr(int *p, int i):ptr(p), val(i) {} int getVal() { return this->val; } int *getPt 阅读全文
摘要:
#include <iostream> using namespace std; class CDemo {public: CDemo(int pa,char *cstr) { this->a = pa; this->str = new char[104]; strcpy(this->str,cst 阅读全文