Ray's playground

 
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 56 下一页

2010年8月1日

Operator Overloading(Chapter 11 of The C++ Programming Language)

摘要: Implicit conversion can be suppressed by declaring a constructor explicit. That is, anexplicitconstructor will be invoked only explicitly. In particular, where a copy constructor is in principleneeded... 阅读全文

posted @ 2010-08-01 01:00 Ray Z 阅读(172) 评论(0) 推荐(0) 编辑

2010年7月28日

Classes(Chapter 10 of The C++ Programming Language)

摘要: Occasionally, a member function is logically const, but it still needs to change the value of a member.To a user, the function appears not to change the state of its object. However, some detail thatt... 阅读全文

posted @ 2010-07-28 21:11 Ray Z 阅读(158) 评论(0) 推荐(0) 编辑

Source Files and Programs(Chapter 9 of The C++ Programming Language)

摘要: In C and older C++ programs, the keyword static is (confusingly) used to mean ‘‘use internallinkage’’.  Consequently, the rule in the standard that says that there must be a un... 阅读全文

posted @ 2010-07-28 09:03 Ray Z 阅读(230) 评论(0) 推荐(0) 编辑

2010年7月26日

Namespaces and Exceptions(Chapter 8 of The C++ Programming Language)

摘要: A using directivemakes names from a namespace available almost as if they had been declaredoutside their namespace. 阅读全文

posted @ 2010-07-26 21:43 Ray Z 阅读(162) 评论(0) 推荐(0) 编辑

2010年7月25日

Functions(Chapter 7 of The C++ Programming Language)

摘要: Return types are not considered in overload resolution. For some functions, it is not possible to specify the number and type of all arguments expected in acall. Such a function is declared by termina... 阅读全文

posted @ 2010-07-25 13:30 Ray Z 阅读(164) 评论(0) 推荐(0) 编辑

Spring and Enterprise JavaBeans(Chapter 11 of Spring In Action)

摘要: Although Spring’s POJO-based development model offers a compelling alternativeto Enterprise JavaBeans, there may be factors (either technical, political, or historical)that force a project to ch... 阅读全文

posted @ 2010-07-25 11:36 Ray Z 阅读(229) 评论(0) 推荐(0) 编辑

2010年7月23日

Being a JSP: using JSP(Head First Servlets and JSP)

摘要: In the end, a JSP is just a servlet.  The Container generates a class from your JSP thatimplements the HttpJspPage interface. This is the onlypart of the generated servlet’s API that you need to... 阅读全文

posted @ 2010-07-23 18:37 Ray Z 阅读(169) 评论(0) 推荐(0) 编辑

2010年7月22日

Expressions and Statements(Chapter 6 of The C++ Programming Language)

摘要: The free store operators new, delete, new[], and delete[] are implemented using functions:  void* operator new(size_t); // space for individual object  void operator delete(void*);  void* operator new... 阅读全文

posted @ 2010-07-22 21:34 Ray Z 阅读(226) 评论(0) 推荐(0) 编辑

Pointers, Arrays, and Structures(Chapter 5 of The C++ Programming Language)

摘要: No object is allocated with the address 0 . Consequently, 0 acts as a pointer literal, indicatingthat a pointer doesn’t refer to an object.  The declarator operator that makes a pointer constant... 阅读全文

posted @ 2010-07-22 09:31 Ray Z 阅读(204) 评论(0) 推荐(0) 编辑

2010年7月20日

Types and Declarations(Chapter 4 of The C++ Programming Language)

摘要: 1 = sizeof(char) <= sizeof(short)<=sizeof(int)<=sizeof(long)  1<=sizeof(bool)<=sizeof(long)  sizeof(char)<=sizeof(wchar_t)<=sizeof(long)  sizeof(float)<=sizeof(double)<=size... 阅读全文

posted @ 2010-07-20 22:15 Ray Z 阅读(173) 评论(0) 推荐(0) 编辑

上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 56 下一页

导航