differs in levels of indirection from 'int ()' (C)

前端 未结 1 1051
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-21 07:26

This code is giving me this error, which I don\'t understand. I can\'t even run the program. Can you help me to fix this error, please? If you don\'t understand anything in the

相关标签:
1条回答
  • 2021-01-21 08:15

    You are calling CancelarPedido before you declared it. You need to reorder the code or add a forward declaration for CancelarPedido.

    Without a declaration of CancelarPedido in scope, it defaults to int CancelarPedido(). You get the error message because lista is declared to be a pointer but CancelarPedido is declared to return an int.

    0 讨论(0)
提交回复
热议问题