Re: [問題] C# null

看板C_Sharp作者 (好人超)時間14年前 (2009/11/01 23:33), 編輯推噓2(203)
留言5則, 1人參與, 最新討論串3/4 (看更多)
※ 引述《light0617 (遺忘的~光)》之銘言: : for (int i = 1; i < 10; i++) : { : bottom.num = list[i];----------->他說問題在這 : bottom.next =null; : walk = bottom; : bottom = bottom.next; : } 1. bottom.next = null; 2. bottom = bottom.next; 導致 bottom 等於 null 解決方法之一 bottom.next = new box(); 不過我不確定這是不是你要的結果 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.127.184.214

11/02 00:36, , 1F
謝謝 不過我真不知道問題出在哪@@ bottom.next=null
11/02 00:36, 1F

11/02 00:37, , 2F
我後來發現應該是沒問題
11/02 00:37, 2F

11/02 00:52, , 3F
未處理的例外狀況 System.NullReferenceException:並未
11/02 00:52, 3F

11/02 00:53, , 4F
將物件參考設定為物件的
11/02 00:53, 4F

11/02 00:53, , 5F
這段話的意思
11/02 00:53, 5F
文章代碼(AID): #1AxQes9c (C_Sharp)
討論串 (同標題文章)
本文引述了以下文章的的內容:
以下文章回應了本文
完整討論串 (本文為第 3 之 4 篇):
問題
1
7
文章代碼(AID): #1AxQes9c (C_Sharp)