看板 Programming 關於我們 聯絡資訊
※ 引述《esa721.bbs@bbs.cs.nctu.edu.tw (嘎明)》之銘言: : 前幾天上課時教授提到 : C語言中的int&*是不存在的 : 到現在還是不太了解 : 請問有大神可以幫我解答嗎 : 感謝 m(_ _)m 我們來比較一下存在的int*&和不存在的int&* 讀法是由右邊讀回來 int*& => a reference of a pointer (pointed) to an int 'int的指標'的參照 int&* => a pointer (pointed) to a reference of an int 指向'int參照'的指標 這樣看就知道了 '指向參照的指標'這是啥東西? 所以沒有這種東西 而指標的參照則是有意義的 -- 'You've sort of made up for it tonight,' said Harry. 'Getting the sword. Finishing the Horcrux. Saving my life.' 'That makes me sound a lot cooler then I was,' Ron mumbled. 'Stuff like that always sounds cooler then it really was,' said Harry. 'I've been trying to tell you that for years.' -- Harry Potter and the Deathly Hollows, P.308 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.30.84
WPC001:C裏頭沒有reference吧... 應該是C++ 123.195.37.60 09/18 22:26
shelling:c 和 c++ 的 指標 參照 語法一樣阿 118.169.33.19 11/29 15:54
shelling:怎麼會沒有呢... 118.169.33.19 11/29 15:54