1957

无聊蛋疼的1957写的低端博客
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年1月22日

摘要: #include <iostream>class TT{ public: int a; TT(){a=0;} TT(int xa){a=xa;} TT(const TT& xa){a=xa.a;} operator int(){return a;} //hidden convert TT to int operator char(){return 48+a;} void operator()(){std::cout<<"xyz"<<std::endl;} //functor};int main(){ TT a; TT b(2); 阅读全文

posted @ 2013-01-22 20:27 1957 阅读(138) 评论(0) 推荐(0)