摘要: #include <iostream>using namespace std;template <class T>struct plus{ T operator()(const T& x, const T& y) const { return x + y; }};template <class T>struct minus{ T operator()(const T& x, const T& y) const { return x - y; }};int main(){ plus<int> plusobj; min 阅读全文
posted @ 2012-08-31 15:36 lichongbin 阅读(134) 评论(0) 推荐(0) 编辑