Re: [問題] 有關pointer

看板Programming作者時間18年前 (2006/10/31 15:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/4 (看更多)
※ 引述《howay0516.bbs@ptt.cc (小浩浩)》之銘言: > 好久沒寫程式了 功力變很遜 > 想問一下有關pointer的問題 > 某 function(){ > // Start find shortest path > // grids[][] and Input[][] two int dimensions array... > FindShortestNum( grids, Input ); > } > void FindShortestNum( int** grids, int** Input ){ // test OK > //上面的這個參數要怎樣傳啊>"< 謝謝願意回答的強者 > //目前這樣是錯誤 > .... > ... > ... > } 不可以這樣傳, 除非你硬轉 type, 詳情請參閱前幾天「請問二維陣列傳值的問題」的討論串。 -- Name: Tseng, Ling-hua E-mail Address: uranus@it.muds.net School: National Tsing Hua University Department: Computer Science Interesting: C++, Compiler, PL/PD, OS, VM, Large-scale software design Researching: Undecided Homepage: https://it.muds.net/~uranus -- ╔═══╗ ┼────────────────────────╮ 狂狷 Origin:[ 狂 狷 年 少 ] whshs.cs.nccu.edu.tw ╰─╮ 年少 ┼╮ < IP:140.119.164.252 > ╰─╮ ╚╦═╦╝ From:61-230-217-167.dynamic.hinet.net ─╨─╨─ KGBBS 遨翔"BBS"的狂狷不馴;屬於年少的輕狂色彩
文章代碼(AID): #15Hllo00 (Programming)
討論串 (同標題文章)
文章代碼(AID): #15Hllo00 (Programming)