The int type is sufficient for rows because the number of rows depends only on the value of pad, which we control. Every C++ implementation is required to allow every int variable to take on values up to at least 32767, which is plenty. Nevertheless, whenever we define a variable that contains the size of a particular data structure, it is a good habit to use the type that the library defines as being appropriate for that specific purpose. (查看原文)
读完c++ primer,再读完ac++,惊叹于koenig夫妇竟用如此紧凑的篇幅展示c++诱人的魅力,的确是c++很好的入门书籍……正像作者所说,“once you have written enough programs that use the material that we have covered so far, you will no longer need the detailed tutorial ...
(展开)
0 有用 王某神 2013-02-15 20:18:40
太坑。。。。。
1 有用 bystander 2012-02-24 15:34:18
可惜读的晚了
1 有用 倁乌 2013-03-16 12:42:50
这玩意儿当教材,我们过的很苦
0 有用 莫显乎微 2024-10-25 15:56:12 安徽
原来自己曾那样认真地学过C++
1 有用 CodingBird 2012-03-07 20:00:07
草草读完,只做了前几章的习题。前四章看的英文版,后来因为速度太慢该看中文版的。都在说这本书适合入门,可是我看得却挺吃力的,后面几章有许多地方没看懂。接下来看《c++primer》,同时把这本书的习题做一下。