05 2005 档案

摘要:帮助理解iterator的原理 阅读全文

posted @ 2005-05-13 21:14 hunter_gio 阅读(518) 评论(0) 推荐(0)

摘要:#include using namespace std; template class plus{public: T operator()(const T& x, const T& y) const { return (x + y); }};template class minus{public: T operator()(const T& x, const T& y) const { ... 阅读全文

posted @ 2005-05-13 09:52 hunter_gio 阅读(426) 评论(0) 推荐(0)

摘要:#include using namespace std;ofstream out ("order.txt");#define CLASS(ID) class ID{\public: \ ID(int) {out << #ID " constructor\n";}\ ~ID() {out << #ID " destructor\n";}\};CLASS(base1);CLASS(member1)... 阅读全文

posted @ 2005-05-11 13:25 hunter_gio 阅读(1166) 评论(0) 推荐(0)

摘要:c++写的选择排序, 冒泡排序 阅读全文

posted @ 2005-05-11 10:48 hunter_gio 阅读(520) 评论(0) 推荐(0)

摘要:能完整写出这几个函数的越来越少了~~~~~ 阅读全文

posted @ 2005-05-10 10:28 hunter_gio 阅读(485) 评论(0) 推荐(0)

摘要:#include using namespace std; class CInt {public: CInt(int i) : m_i(i) {}; virtual ~CInt(){}; void operatorm_i); return *this; } const CInt operator++(int) { CInt temp = *this; ++(*this); retur... 阅读全文

posted @ 2005-05-10 10:20 hunter_gio 阅读(478) 评论(0) 推荐(0)

导航