C语言初学者求帮助error C2297: '+' : illegal, right operand has type 'double (__cdecl *)(void)'
#include<stdio.h>#include<math.h>#definex20voidmain(){doubley,a,b,x2,c();a=2*x;b=3*a;...
#include <stdio.h>
#include <math.h>
#define x 20
void main()
{
double y,a,b,x2,c();
a = 2 * x;
b = 3 * a;
x2 = x * x;
scanf ("%d",&c);
y = a * x2 + b * x + c;
printf ("y = %d",y);
} 展开
#include <math.h>
#define x 20
void main()
{
double y,a,b,x2,c();
a = 2 * x;
b = 3 * a;
x2 = x * x;
scanf ("%d",&c);
y = a * x2 + b * x + c;
printf ("y = %d",y);
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询