摘要: #include <iostream> using namespace std; class AHasPtr {public: AHasPtr(int *p, int i):ptr(p), val(i) {} int getVal() { return this->val; } int *getPt 阅读全文
posted @ 2019-06-05 09:47 西北逍遥 阅读(148) 评论(0) 推荐(0) 编辑
摘要: #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 阅读全文
posted @ 2019-06-05 08:53 西北逍遥 阅读(125) 评论(0) 推荐(0) 编辑