作者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