摘要:        
重载operator->()可以增加一些附加的操作,比如计数#include<iostream>using namespace std;class Image{public: void Draw(int a,int b) { cout<<"a="<<a<<"b="<<b<<endl; }};class Imageptr{ public: Imageptr(char* name); virtual ~Imageptr(); void Draw(int a,int b); void    阅读全文
posted @ 2012-05-15 21:07
张兰云
阅读(197)
评论(0)
推荐(1)
        
 
                    
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号