说明语法错误在函数main ( fathoms = 8;)(可能在'fathoms'定义前使用了它在函数 :main)求高手解答
#include<stdio.h>{intmain(void)intfeet,fathoms;fathoms=8;feet=6*fathoms;printf("there...
#include <stdio.h>
{
int main (void)
int feet,fathoms;
fathoms = 8;
feet = 6 * fathoms;
printf("there are %d feet in %d fathoms!\n", feet,fathoms);
printf("Yes, I said %d feet!\n", 6 * fathoms);
return 0;
}
(fathoms = 6:) 展开
{
int main (void)
int feet,fathoms;
fathoms = 8;
feet = 6 * fathoms;
printf("there are %d feet in %d fathoms!\n", feet,fathoms);
printf("Yes, I said %d feet!\n", 6 * fathoms);
return 0;
}
(fathoms = 6:) 展开
展开全部
{在main后面
追问
警告是什么意思啊
追答
可能会出问题,程序达不到你想要的结果。
错误比警告严重。
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2019-11-08
展开全部
#include <stdio.h>
int main ()
{ int feet , fathoms;
fathoms=8;
feet=6*fathoms;
printf("there are %d fathoms!\n",feet ,fathoms);
printf("Yes, I said %d feet!\n", 6*fathoms);
return 0;
}
int main ()
{ int feet , fathoms;
fathoms=8;
feet=6*fathoms;
printf("there are %d fathoms!\n",feet ,fathoms);
printf("Yes, I said %d feet!\n", 6*fathoms);
return 0;
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询