求助
vs2015吧
全部回复
仅看楼主
level 6
wo闪电光 楼主
这是c语言里的编码,如何让它用vs里mfc应用程序实现,求大神指点呀[哈哈] [哈哈] [哈哈] [哈哈] [哈哈]
#define n 5/*暂且设定为5*/
#include<stdio.h>
void main()
{
float a[n],x,sum;
int i;
printf("Please input the value of x=");
scanf("%f",&x);
for(i=n;i>=0;i--)
{
printf("Please input the value of a%d=",i);
scanf("%f",&a[i]);
}
sum=a[n];
for(i=n;i>=1;i--)
{
sum=sum*x+a[i-1];
}
printf("f(x)=%f\n",sum);
}
2016年03月13日 15点03分 1
level 6
wo闪电光 楼主
应该有大神
2016年03月13日 15点03分 2
level 6
wo闪电光 楼主
~~
2016年03月13日 15点03分 3
level 6
wo闪电光 楼主
~~
2016年03月14日 01点03分 4
1