type top struct { node *tree hd int}func (t *bt) topview() { if t.root == nil { return } qu := list.New() qu.PushBack(top{t.root, 0}) sample := qu.Front() fmt.Println(sample.hd)```失敗,錯(cuò)誤 sample.hd 未定義(鍵入 *list。元素沒有字段或方法 hd)
如何在 golang 中制作結(jié)構(gòu)型隊(duì)列
繁星點(diǎn)點(diǎn)滴滴
2022-08-09 20:26:37