//
用模板实现类似于参数调用的效果
//
2013-03-22
//
sina blog will automatically remove "<" and ">"
//
only tested on VS2008, not supported in old versio like VS6.0
#include
< iostream >
#include
< cstring >
#include
< cmath >
using namespace std;
double mysin(double x)
{
}
template < double (*T)(double) >
double result(double x)
{
}
double result(double (*T)(double),double x)
{
}
int main()
{
}