這個是哪里錯了
hello.c:?In?function?'main': hello.c:9:17:?error:?'$x'?undeclared?(first?use?in?this?function) ?????scanf("%lf",$x); ?????????????????^~ hello.c:9:17:?note:?each?undeclared?identifier?is?reported?only?once?for?each?function?it?appears?in
hello.c:?In?function?'main': hello.c:9:17:?error:?'$x'?undeclared?(first?use?in?this?function) ?????scanf("%lf",$x); ?????????????????^~ hello.c:9:17:?note:?each?undeclared?identifier?is?reported?only?once?for?each?function?it?appears?in
2019-08-01
舉報
2019-09-05
2019-08-10
dsfcgdsg
2019-08-01
沒有$x 你想說的是&x吧
2019-08-01
#include <stdio.h>
#include <math.h>
void main()
{
? ? double x,s;
? ??
? ? printf("inout number:\n");
? ? scanf("%lf",$x);
? ? printf("sin of %lf is %lf\n",x,s);
}