> 其他 >
case 2:{ if(h==-1) nodata(); else output(h);break; }
:\vc++\lianbiao.cpp(154) :error C2664:'output' :cannot convert parameter 1 from 'int' to 'struct node *'
Conversion from integral type to pointer type requires reinterpret_cast,C-style cast or function-style cast
怎么改?
人气:159 ℃ 时间:2020-06-23 22:12:09
解答
你的output里肯定是要打印一个结构体node*的,但是你把一个整型值比方说是a副职给他了,可以这么改用到a的地方改成 (struct node *)a
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版