全部博文(370)
分类: C/C++
2010-11-07 21:47:33
| #define TABLE_COMP(x) ((x)>0?(x):0) |
| #define TABLE_MULTI(x) (x*x) |
| #define TABLE_MULTI(x) ((x)*(x)) |
| Inline tablefunction(int I) {return I*I}; |
| Class TableClass{ Private: Int I,j; Public: Int add() { return I+j;}; Inline int dec() { return I-j;} Int GetNum(); } inline int tableclass::GetNum(){ return I; } |
| Class sample{ Private: Int nTest; Public: Int readtest(){ return nTest;} Void settest(int I) {nTest=I;} } |