摘要: #include <stdio.h>//#include <windows.h> 包含byte#include <IOSTREAM>using namespace std;#define HALF_BIT_LENGTH 4#define FULLMASK 255#define LMASK (FULLMASK << HALF_BIT_LENGTH)#define RMASK (FULLMASK >> HALF_BIT_LENGTH)#define RSET(b,n) (b=((b&LMASK)^n))#define LSET(b 阅读全文
posted @ 2012-11-02 22:13 cococo点点 阅读(321) 评论(0) 推荐(0)
摘要: 先看一种情况:注意橘色的部分,是用的类名定义#include <iostream>using namespace std;class Hen{public: void display() { cout<<"this is Hen display()"<<endl; } class Nest { public: int Egg; void display() { cout<<"this is Nest display()"<<endl; } };};int mai... 阅读全文
posted @ 2012-11-02 09:03 cococo点点 阅读(169) 评论(0) 推荐(0)