⑴ C語言 錯誤提示「在函數XX中調用了太少的參數」
void outprint(struct list*head)
要傳一個list *型的參數給outprint啊,但你在main中調用時只寫了outprint(),沒傳參數,當然不行.
而且你的new()執行之後,返回值也沒傳給head.都沒建好list,你怎麼outprint
⑴ C語言 錯誤提示「在函數XX中調用了太少的參數」
void outprint(struct list*head)
要傳一個list *型的參數給outprint啊,但你在main中調用時只寫了outprint(),沒傳參數,當然不行.
而且你的new()執行之後,返回值也沒傳給head.都沒建好list,你怎麼outprint