摘要: #include "stdafx.h"#include "iostream" using namespace std; class MyClass{ int _i; friend void Increment(MyClass& f);public: const int NUM; //常量值的定义:N 阅读全文
posted @ 2016-04-10 11:53 huninglei 阅读(387) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include "iostream" using namespace std; class Base1{public: virtual void show() = 0;};class Base2{protected: char* _p; //char* s的地 阅读全文
posted @ 2016-04-10 10:02 huninglei 阅读(303) 评论(0) 推荐(0) 编辑