#include("stdio.h")
main()
{float t,f,x,y;
printf("Please input the t and f:/n");
scanf("%f,%f",&t,&f);
x=(4t-f)/2 /*就是这一行*/
y=(f-2t)/2
printf("x=%f,Y=%f",x,y)
}
ctrl+f9 时 就出现 Expression syntax in function main
俺 初学者 各位见笑啦
望详细回答 大恩不言谢!
先 谢过!
加上;后 老毛病没有好
#include("stdio.h")
main()
{float t,f,x,y;
printf("Please input the t and f:/n");
scanf("%f,%f",&t,&f);
x=(4t-f)/2; /*这一行依然有错误 Expression syntax in function main */
y=(f-2t)/2; /*这一行出现了与上一行一样的 Expression syntax in function main */
printf("x=%f,y=%f",x,y); /*这一行 出现了错误 说 x未定义*/
再次谢谢各位
}
PIPIONE
宝慕林4294392