//自学中...无授课老师,拜托大神帮忙看看~
#include<stdio.h>
#include<time.h>
#include<math.h>
clock_t start,stop;
double duration;
#define MAXN 10
/*多项式最大相熟,即多项式阶乘+1*/
double f1(int n,double a[],double x);
double f2(int n,double a[],double x);
int main()
{
	int i;
	double a[MAXN];
	for(i=0;i<MAXN;i++)
		a[i]=(double)i;
	start=clock();
	f1(MAXN-1,a,1.1);
	stop=clock();
	duration =((double)(stop-start));
	printf("ticks1=%f\n",(double)(stop-start));
	printf("duration=%6.2\n",duration);

	start=clock();
	f2(MAXN-1,a,1.1);
	stop=clock();
	duration =((double)(stop-start));
	printf("ticks2=%f\n",(double)(stop-start));
	printf("duration=%6.2\n",duration);
	return 0;
}
测试多项式用打点计时.obj : error LNK2001: unresolved external symbol "double __cdecl f2(int,double * const,double)" (?f2@@YANHQANN@Z)
测试多项式用打点计时.obj : error LNK2001: unresolved external symbol "double __cdecl f1(int,double * const,double)" (?f1@@YANHQANN@Z)
Debug/测试多项式用打点计时.exe : fatal error LNK1120: 2 unresolved externals
执行 link.exe 时出错.