2、dscyt(floatfloatdataydatax[],[],intindexx);voidzxecnh(floatfloatdataydatax[],[],intindexx);voidtrans(charstr[],floatdate[],int&n).voidsolve(floattable[][36],intindex);voidcreatetable(intindex,floatfloatur[],[],[],floatfloatg,f0,floatfn,floattable[][36]).voidcalcbase
3、b(floatdatax[],floatb[],intindexx,floatx)voidcalcbasea(floatdatax[],floata[],intindexx,floatx)hersumfloat(floatdate[],inti,intindex);voidmain(){floatdatax[32].floatdatay[32].charstr[150].intindex=0,indexx,indexy,the;loop1:igive{memset(datax,0,sizeof(datax));memset(d
4、atay,0,sizeof(datay));printf("输入源数据x");scanf("%s",str);trans(str,datax,indexx);printf("输入源数据y");scanf("%s",str);trans(str,datay,indexy);}while(!(indexx==indexy));loop:system("cls");printf(x->);for(i=0;i
5、").for(i=0;i6、anf("%d"&index);switch(index){case1:largange(datax,datay,indexx);break;case2:newton(datax,datay,indexx);break;case3:scyt(datax,datay,indexx);break;case4:hermite(datax,datay,indexx);break;case5:zxecnh(datax,datay,indexx);break;case0:break;default:gotoloop.}system("pa
7、use");if(index)gotoloop1;}voidtrans(charstr[],floatdate[],int&n){unsigned.intj;data[0]=0.0.sscanf(str,"%f",&data[0]);for(i=1,j=0;i8、inti=0,j=0;floatlk[32].for(i=0;i