OptCouundefined;assumingexternreturningint什么意思

用户提问 |浏览848次
收藏|2019/04/30 15:11

满意回答

2019/04/30 15:23

程序有多个问题都是与返回值有关1。你的int OptCou(int x,int y,int a,int b)没有先声明(不同编译器会有不同警告或错误的)在你的main前面加int OptCou(int x,int y,int a,int b);2.在main()的 printf("%d\n",p);后面加个return 0;3. 大问题,你的scanf("%f%f%f%f",&x,&y,&a,&b);后面的a,b,c,d都是int的,不能用%f要用%d4。你的maxlayer=0,没有用到
匿名

其他回答(0)
0人关注该问题
+1

 加载中...