会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
huninglei
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
2016年4月10日
Derived 派生类
摘要: #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
阅读(317)
评论(0)
推荐(0)
2016年4月9日
移动点的坐标
摘要: #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
阅读(236)
评论(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
阅读(198)
评论(0)
推荐(0)
2016年3月28日
C和C++语言&
摘要: #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
阅读(202)
评论(0)
推荐(0)
上一页
1
2
3
4
公告