看板 CCJH-89g-314 關於我們 聯絡資訊
叫我這個資結一知半解的來亂猜好了 有正解記得跟我講 ※ 引述《tony90981 (妹妹頭有什麼不好!!!)》之銘言: : Consider : static int x; 宣告一個static variable (就像global variable,memory會一值被保留當程式執行時) : void p(void) { static int x;} XD 看不出有什麼不同,我想他既然這樣出,可能是要把automatic variable轉成 static variable吧 : a) What is the meaning of each occurrence : of the keyword static? : b) What is the meaning of each occurrence : of the keyword void? b喔,第一個void就是那樣阿沒啥好說 裡面的void是optional,也就是要寫不寫都可以吧 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.138.128
tony90981:沒正解 考出來 教授改 有點到重點就給分 218.174.165.5 11/10
Henmen:嫩 140.114.221.85 11/10
tony90981:你會喔你也解答一下我參考看看我真的很嫩 218.174.165.5 11/10
tony90981:你都用英文寫喔超強我都不敢用怕拼錯扣分 218.174.165.5 11/10