[問題] 二維陣列轉一維陣列印不出值
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Dev C++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
無
問題(Question):
二維陣列轉成一維陣列印不出值
餵入的資料(Input):
亂數
例如:w892e w39 258
預期的正確結果(Expected Output):
list[length-2]=2
list[length-1]=e
list[length]=w
list[length+1]=3
錯誤結果(Wrong Output):
list[length-2]=2
list[length-1]=e
list[length]=
list[length+1]=
不知道為什麼最下面兩行印不出來
程式碼(Code):(請善用置底文網頁, 記得排版)
http://codepad.org/GiDyKh3d
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.123.132.44
→
11/11 10:53, , 1F
11/11 10:53, 1F
→
11/11 11:17, , 2F
11/11 11:17, 2F
→
11/11 14:01, , 3F
11/11 14:01, 3F
→
11/11 14:01, , 4F
11/11 14:01, 4F
→
11/11 14:01, , 5F
11/11 14:01, 5F
→
11/11 14:01, , 6F
11/11 14:01, 6F
→
11/11 14:31, , 7F
11/11 14:31, 7F
→
11/11 22:49, , 8F
11/11 22:49, 8F