永发信息网

linux c 预处理的时候提示这个问题!!是什么意思??

答案:3  悬赏:10  手机版
解决时间 2021-02-27 00:19
  • 提问者网友:相思似海深
  • 2021-02-26 16:57
earch.c: In function ‘search’:
search.c:15: error: called object ‘load’ is not a function
search.c:50: warning: format ‘%d’ expects type ‘int *’, but argument 2 has type ‘int’
make: *** [search.o] 错误 1
最佳答案
  • 五星知识达人网友:空山清雨
  • 2021-02-26 17:52
1.
search.c:15: error: called object ‘load’ is not a function

请检查你的标点符号(函数定义处和调用出),尤其是大括号和小括号。

2.
search.c:50: warning: format ‘%d’ expects type ‘int *’, but argument 2 has type ‘int’

函数参数是个int指针,你给的是个int。
全部回答
  • 1楼网友:千杯敬自由
  • 2021-02-26 20:15
参数类型不低,亲
  • 2楼网友:玩家
  • 2021-02-26 19:07
你好! 第一行的意思是:load不是个函数. 第二行的意思是:人家要的是整数的指针,你给传递的是整数.scanf函数吧? 如有疑问,请追问。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯