摘要:
17.3 Input with cin Typically, you use as follows: C++ redefines for handling input with . It is overloaded for the basic types of C++, as well as the 阅读全文
摘要:
17.1 An Overview of C++ Input and Output Unlike other languages that place I/O in keywords, C and C++ leaves I/O purely to implementers. C++'s solutio 阅读全文
摘要:
16.4 Generic programming A goal of generic programming is to write code that is independent of data types. The STL goes further by providing a generic 阅读全文
摘要:
(这已经是第二次博客园吞我东西了,有点心态爆炸) 16.1 The string Class ) Constructing a string Here is a table which shows the seven form of constructors that the class has: 阅读全文
摘要:
// 这个part因为网络问题被吞了一部分 15.3 Exceptions ) Calling When you already know the conditions of failure, you may detect them and call if true to terminate the 阅读全文
摘要:
15.1 Friends ) When you want to make class A's private members accessible to class B, let B be a friend class of A by declaring `friend class B;': Sup 阅读全文
摘要:
14.4 Class Templates ) Templates provide parameterized types, which is capable of passing a type name as a recipe for building a class or a function. 阅读全文
摘要:
14.1 Classes with object members ) The valarray class To declare an object, you follow the identifier with angle brackets that contain the desired typ 阅读全文