- 博客(213)
- 资源 (9)
- 收藏
- 关注
原创 函数指针
#include #include using namespace std;/*int(*func)(int);long(*func1)(int); //声明了一个指针.该指针指向一个函数.long *func1(int); //声明了一个函数.该函数返回一个指针.*/float (*fp)(float&,float&);void (*p)(float&,float&);float triang
2009-10-20 16:37:00 366
原创 静态成员的使用
#include using namespace std;class aspl{public: aspl(float p){price=p;TotalPrice=TotalPrice+p;} ~aspl(){TotalPrice=TotalPrice-price;} static float get(){return TotalPrice;}private: float price; static
2009-10-20 15:44:00 426
原创 静态成员函数
#include using namespace std;class A{public: void static show(){cout void get(){cout/* 类中任何成员函数都能访问静态成员 静态成员函数不能直接访问非静态成员 静态成员函数不能被说明为虚函数*/private: static int n; int m;};class B:public A{ };int A::n=0
2009-10-20 15:28:00 382
原创 私有静态成员变量
#include using namespace std;class A{public: void Func(){coutprivate: static int x;};int A::x=1000;int main(){ A a; a.Func(); /*静态私有成员.访问的前提.必须有该类的对象A a;a.Func();*/ return 0;}
2009-10-20 14:59:00 917
原创 静态成员变量
#include using namespace std;class A{public: A(int num):it(num){total++;} static int total; virtual ~A(){total--;} int get(){return it;} void set(int age){it=age;}private: int it;};int A::total=0;void
2009-10-20 14:52:00 732
原创 抽象类实例
#include using namespace std;class Shape{public: virtual double area()=0;};/*三角形类*/class Trigon:public Shape{protected: double h,w;public: Trigon(double H,double W) { h=H; w=W; } double area() { r
2009-10-20 13:49:00 637
原创 纯虚函数与抽象类
#include using namespace std;class Human//接口类ADT{public: Human(){cout virtual void smart()=0; //纯虚函数. virtual void beautiful()=0; //纯虚函数. virtual ~Human(){cout};class father:virtual public Hum
2009-10-20 13:00:00 490
原创 模拟抽象类
#include using namespace std;class Human//接口类ADT{public: Human(){cout virtual void smart(){} virtual void beautiful(){} virtual ~Human(){cout};class father:virtual public Human{public: father(){cout v
2009-10-20 11:18:00 496
原创 多重继承
#include using namespace std;class father{public: father(){cout void smart(){cout virtual ~father(){cout};class mother{public: mother(){cout virtual void beautiful(){cout virtual ~mother(){cout};class
2009-10-20 10:58:00 371
原创 在派生类中增加函数
#include using namespace std;class father{public: void smart(){cout //virtual void beautiful(){} virtual ~father(){cout};class son:public father{public: void beautiful(){cout ~son(){cout};int main(){
2009-10-20 10:46:00 600
原创 多重继承
#include using namespace std;class father{public: void smart(){cout virtual void beautiful(){} virtual ~father(){cout};class son:public father{public: void beautiful(){cout ~son(){cout};int main(){ fa
2009-10-20 10:33:00 448
原创 走迷宫
// GameWnd.cpp : implementation file////#include "stdafx.h"#include "game.h"#include "GameWnd.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif///////
2009-10-20 10:10:00 842
原创 C++键盘事件
VK_A~VK_Z从A键到Z键.VK_0~VK_9从0键到9键.VK_F1~VK_F12从F1键到F12键.VK_DOWN向下键头VK_UP向上键头VK_LEFT向左键头VK_RIGHT向右键头VK_ESCAPE::ESC键VK_DELETE::DELETE键VK_INSERT::INSERT键VK_SHIFT::SHIFT键VK_CONTROL::CT
2009-10-19 15:52:00 7266
Wrox.-.Beginning.Php,.Apache,.Mysql.Web.Development.(2004)
2011-05-25
Apress.Pro.PHP.Application.Performance.Dec.2010.pdf
2011-05-25
比较不错的Flex 教程
2010-05-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人