看板Programming
標 題Re: [問題] 有關pointer
發信站政大狂狷年少 (Tue Oct 31 15:06:20 2006)
轉信站ptt!ctu-reader!ctu-peer!news.nctu!netnews.csie.nctu!news.cs.nthu!WHSHS
※ 引述《[email protected] (小浩浩)》之銘言:
> 好久沒寫程式了 功力變很遜
> 想問一下有關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:
[email protected]
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"的狂狷不馴;屬於年少的輕狂色彩 ◎