2011年10月29日
摘要: 这几天学着用C++ 模版(Genetic programming)写程序,碰到一个很纠结的问题。描述如下: 通常情况下,我喜欢重载operator<<()用来输出类内部的信息,以方便调试。例如: class A{public: A(string value): data(value){} friend ostream& operator<< (ostream & out, const A& m... 阅读全文
posted @ 2011-10-29 16:52 chrihop 阅读(3127) 评论(2) 推荐(3) 编辑