看板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"的狂狷不驯;属於年少的轻狂色彩 ◎