自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Carter的程序人生

Carter,2007年开始从事互联网开发工作,工作经历:小公司->赶集->百度->数字

  • 博客(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

Go语言圣经golang.pdf

Go语言圣经golang.pdf

2020-04-24

Wrox.-.Beginning.Php,.Apache,.Mysql.Web.Development.(2004)

Wrox.-.Beginning.Php,.Apache,.Mysql.Web.Development.(2004)

2011-05-25

Apress.Pro.PHP.Application.Performance.Dec.2010.pdf

Apress.Pro.PHP.Application.Performance.Dec.2010.pdf

2011-05-25

OO_Programming_with_PHP5

OO_Programming_with_PHP5

2010-07-09

比较不错的Flex 教程

Flex 教程 Flex 教程 Flex 教程 Flex 教程 Flex 教程 Flex 教程 Flex 教程 Flex 教程 Flex 教程 Flex 教程 Flex 教程 Flex 教程 Flex 教程 Flex 教程 Flex 教程 Flex 教程

2010-05-19

网页浮动广告代码 非常好在右侧

网页浮动广告代码 非常好的 网页浮动广告代码 非常好的 网页浮动广告代码 非常好的

2008-12-05

网页浮动广告代码 非常好的

网站浮动广告代码 网页浮动广告代码 非常好的 网页浮动广告代码 非常好的

2008-12-05

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除