Chinaunix首页 | 论坛 | 博客
  • 博客访问: 643209
  • 博文数量: 151
  • 博客积分: 3498
  • 博客等级: 中校
  • 技术积分: 1570
  • 用 户 组: 普通用户
  • 注册时间: 2005-02-28 18:10
文章分类

全部博文(151)

文章存档

2014年(12)

2013年(17)

2012年(17)

2011年(5)

2010年(12)

2009年(2)

2007年(26)

2006年(22)

2005年(38)

分类: LINUX

2005-12-27 16:42:46

最近LINUX停了,觉得驱动看了之后也找不到什么切入点,正好看看C++的book

英文的东西确实不好看,作为参考资料可以,但是作为BOOK单独来看,看了后就不知道讲了什么,
就说bjarne stroustup的C ++ PROGRAMMING LANGUAGE 看了好几个小节后,却什么都想不起来,
哎,看来确实看了也没什么长进了,索性 背了两段话。

int type
 
like char,each integer type comes in three forms: 'plain' int,signed

int,unsigned int.in addition,integers come in three sizes:short

int,'plain' int,long int.a long int can be referred to as a long,short 

is a synonym for short int,signed for signed int,unsigned for unsigned

int.


enumeration type

an enumerator can be initialized by constant-express of a integral

type.the range of enumeration holds all the enumeration's enumerator

rounded up to the nearest larger binary power minus 1,the range goes

down to 0 if the smallest enumerator is non-nagative and to the nearest

 less negative binary power if the smallest enumerator is negative.


一个是讲int这种类型的,讲了INT 的三种形式和三种大小;还有一个是ENUM类型的范围的。
看过了也翻译的,但是却感觉什么都没看过。看来思考的时候也得要用ENGLISH才行啊。

不知道EFFECTIVE C++这本书的ENGLISH怎么样,我现在在看中文的,在CHM里面看了老觉得眼睛难受,还是LCD的显示器啊,
这本书确实讲到了比较关键的地方了,如果你作过实际的开发,那么他讲的那些clause我想你很多都碰到过的,我也一样,就说那过
delete [] ptr;
delete ptr;
我在VC里面不知道碰到了多少次错误,却是找不到文档,碰到这个问题,我就是用VC调试直到没有错误,比较痛苦吧。







阅读(1282) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~