/* 功能:编写一个函数模版compare 作者:wind 日期:2013-12-11 */ #include <iostream> using namespace std; template<typename T> bool Compare(T a,T b) { if (a==b) { return true; } else { return false; } } int main(void) { system("pause"); return 0; }