摘要: #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) 编辑
摘要: #include "stdafx.h"#include "iostream" using namespace std; class Point{public: Point(double x,double y); ~Point(); //获得类的成员变量_x的值 double GetX()const{ 阅读全文
posted @ 2016-04-09 18:10 huninglei 阅读(230) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include "iostream" using namespace std; class Stack{public: virtual void push(char c) = 0; virtual char pop() = 0;}; class ArraySt 阅读全文
posted @ 2016-04-09 17:48 huninglei 阅读(193) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include "iostream"#include "animal.h"using namespace std;#include <iostream>using namespace std; class Array{public: Array(unsigne 阅读全文
posted @ 2016-03-28 15:13 huninglei 阅读(193) 评论(0) 推荐(0) 编辑