[理工] 交大105 資演 關於array
16題的(C)
Array is the most fundamental data structure. We can use it to implement any
data structure, even user define structure.
答案給這個敘述是對的(如果我眼殘真的對不起大家)
只是這句話我第一個反應覺得問題超大啊...
像是
struct { int a; short b; char c; }; 是要怎麼用array做出來?
求解 thanks~
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.114.123.132
※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1516175051.A.B92.html
→
01/17 15:50,
8年前
, 1F
01/17 15:50, 1F
推
01/17 17:17,
8年前
, 2F
01/17 17:17, 2F
→
01/17 17:18,
8年前
, 3F
01/17 17:18, 3F
推
01/17 17:38,
8年前
, 4F
01/17 17:38, 4F
→
01/17 17:38,
8年前
, 5F
01/17 17:38, 5F
→
01/17 17:39,
8年前
, 6F
01/17 17:39, 6F
→
01/17 17:39,
8年前
, 7F
01/17 17:39, 7F
謝謝版友回答,只是我還是覺得這是智障題目
C++標準總共33章節 class佔4章 想要把陣列假裝成class還當真不能
struct { int a; short b; void* p; };用array來做
不僅cache的行為不一樣
對上硬體的時候也對不上
而且語言不一樣 語法也不一樣
謝謝各位回答
※ 編輯: j5464654 (140.114.123.132), 01/18/2018 14:03:48