compilation error: request for member in something not a structure or union

前端 未结 2 963
清歌不尽
清歌不尽 2021-01-18 02:05

Edit: The code below has been modified to work as the problem has been solved.

Specifically, (*hardwareList.next_item)->next

2条回答
  •  [愿得一人]
    2021-01-18 02:47

    hardwareList.next_item is HardwareListItem**, so operator -> on it returns HardwareListItem*, which obviously is not a struct.

    You're using too many pointers, it is confusing. Try to simplify your code, you have tons of bugs there.

提交回复
热议问题