摘要:
#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 阅读全文