作者ric2k1 (Ric)
看板EE_DSnP
標題[公告] 關於 Lecture Note #5 的更正與補充
時間Wed Nov 5 18:04:18 2008
請自行更正與補充, 投影片就不再重新上傳了!
p33
===
(Missing some lines in PDF files)
* If you modify the content of the pointed memory, the caller's
pointed memory will get affected too
e.g. *a = 20;
* What if you “delete a”?
Note: ‘a’ points to the same pointed memory as caller’s
p47
===
(Lines 2 & 4) 請將 A 改成 T
p50
===
* Pointer subtraction returns the number of elements between these two pointers
這句話並不完全精確, 因為如果 (p - q) 等於 2 的話, (q - p) 就是 -2
p60
===
2 int **scores = new (int *)[nClasses];
應改為
2 int **scores = new int *[nClasses];
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.21.241