看板 C_and_CPP 關於我們 聯絡資訊
程式碼如下 http://ideone.com/3zdcJc 想請教第八行 struct ns* next; 為何要這樣宣告 -> * 請問這兩個符號怎麼念 * 我知道用法但是一直不會唸orz. 求版上大大指教! -- Sent from my Windows -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.129.50.191 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1476410608.A.7D9.html
steve1012: Arrow operator, 10/14 10:03
steve1012: Star 10/14 10:03
steve1012: 這是c style 寫法. 一個structure A 要使用時一定要加 10/14 10:05
steve1012: 關鍵字struct 除非你有用typedef 10/14 10:05
jack1218: 提問: 請問要怎麼利用儲存在裏面的變數 比方說我想寫一 10/14 10:12
jack1218: 個貪吃蛇 每個節點紀錄x,y 位置 請問該如何利用 10/14 10:12
suwako: http://bfy.tw/8BNo 10/14 10:47
Caesar08: *叫做asterisk、star、indirection、dereference 10/14 10:55
Caesar08: ->叫做class member access 10/14 10:57
Caesar08: ->*叫做pointer to member operator 10/14 10:57
pttworld: * 指標、取值運算子。 10/14 11:01
CoNsTaR: struct ns* 是 type 10/14 11:49
steve1012: Access data member 用 Ptr->x 10/14 15:05