摘要:        
C++中public,protected,private访问小结第一:private,public,protected方法的访问范围.(public继承下)private: 只能由该类中的函数、其友元函数访问,不能被任何其他访问,该类的对象也不能访问.protected: 可以被该类中的函数、子类的...    阅读全文
posted @ 2016-01-24 12:32
飞飞喵
阅读(144)
评论(0)
推荐(0)
        
            
        
        
摘要:        
https://www.coursera.org/learn/cpp-chengxu-sheji/lecture/c3tbl/liu-cha-ru-yun-suan-fu-he-liu-ti-qu-yun-suan-fu-de-zhong-zai 笔记Part 1. 流插入运算符的重载:cout<<...    阅读全文
posted @ 2016-01-24 11:31
飞飞喵
阅读(1020)
评论(1)
推荐(0)
        
            
        
        
摘要:        
new:int *a = new int[size];int **a = new int*[size];运算符重载: // 输入输出运算符必须被重载为全局函数!class Complex{ public: int a,b;};Complex operator+(Complex ...    阅读全文
posted @ 2016-01-24 08:50
飞飞喵
阅读(607)
评论(2)
推荐(0)
        
                    
                
浙公网安备 33010602011771号