摘要: 1.可以在类外部定义指针成员,指向类内成员,如下: #include class Sample { public: int x; int y; void disp() { std::cout using namespace std; class Sample { int x,y; public: Sample() { x=y=0; } Sample(int i,int j) { x=i; y=j; } void copy(Sa... 阅读全文
posted @ 2014-01-06 18:40 Android开发8585 阅读(195) 评论(0) 推荐(0) 编辑