
最 低 价:¥25.60
| 以一个简短且具代表性的C++程序体现关键概念是本书的一大特色。这个程序采用容器和有轨电车的知识来报告铁道运输的货运能力,从而体现了C++类抽象自然类的能力。 |
| Patrick Henry Winston 麻省理工学院人工智能和计算机科学教授。他在人工智能领域十分著名,著有多部思路清晰且见解独到的专著。除本书外,他还著有《On to C》、《On to Java2》(Java2专家导引,该书影印版由机械工业出版社引进出版)、《Artificial Intelligence》等书。... .. << 查看详细 |
| 1 how this book teaches you the language why you should learn c++ object-oriented programming languages procedure-oriented programing languages programming cliches. 2 how to compile and run a simple program compiling, linking, and executing statements and declarations the output operator, [[, and character strings case sensitivity and blank ihsensitivity operators and operands 3 how to declare variables data types and variable declarations initialization and assignment integral data types 4 how to write arithmetic expressions arithmetic precedence and association binary and unary operators type casting .5 how to write statements that read information from your keyboard the input operator, ]] input redirection 6 how to define simple functions calling and returning from functions arguments, parameters, and values function overloading7how to benefit from procedure abstraction making programs easier to reuse, read, and debug making programs easier to augment, improve, and adapt 8how to work with local and global variables extent and scope local, static, and global variables compound statements 9 how to create classes and objects user-defined data types, classes, and objects class specification and member variables the class-member operator 10 how to define member functions the special, class-object argument member function prototypes the class-scope operator,:: 11 how to define constructor member functions the default constructor argument-bearing constructors 12 how to define reader and writer member functions reader and writer member functions imaginary member variables 13 how to benefit from data abstraction access functions and data abstraction making programs easier to reuse 14 how to protect member variables from harmful reference private member variables and member functions the public interface 15 how to define classes that inherit variables and functions inheriting member variables and member functions derived classes and base classes multiple inheritance and shadowing 24 how to work with arrays of numbers arrays of numeric elements filling a numeric array from a file 25 how to work with arrays of class objects arrays of class-object elements filling an object array from a file.. 26 how to create file streams for input and output creating streams opening and closing files for reading and writing ifstream and ofstream statements 27 how to create new class objects at run time pointers and the free store allocating space with new the dereferencing operator, * the class-pointer operator, -] the address-of operator, & 28 how to store pointers to class objects wasting space by defining too-large object arrays saving space by defining too-large pointer arrays 29 how to write programs that find member functions at run time arrays of pointers to miscellaneous objects virtual member functions pure virtual functions 30 how to write multiway condmonal statements switch statements the cerr output stream exit statements 31 how to use enumerations to improve readability the mnemonic sterility of numbers the enumeration data type the integral data types the character data type 32 how to write constructors that call other constructors 33 how to write member functions that call other member functions 34 how to use protected and private variables and functions 35 how to use protected and private class derivations 36 how to write functions that return character strings character strings and character arrays the null character, \0 37 how to use call-by-reference parameters call by value and incomplete argument copying using call by reference to access entire objects using call by reference to save time using call by reference to alter arguments 38 how to overload the output operator copy-free function return pass-through objects operator overloading 39 how to produce tabular displays the printf function field widths and padding characters printing strings, characters, and numbers 40 how to write statements that read character strings from files input buffers using the input operator with a character pointer array names viewed as constant pointers 41 how to test string characters characters viewed as integers obtaining character codes using enumeration constants as character codes 42 how to deposit character strings into class objects creating character arrays at run time using new using strlen and strcpy to measure and copy 43 how to reclaim memory with delete and destructors garbage and memory leaks del ete viewed as the complement of new destructor member functions static member variables 44 how to prevent object copying the excess-reclamation bug defining your own copy constructor 45 how to organize a multiple-file program header files separating class and member-function definitions inline functions managing global variables with static and extern 46 how to compile a multiple-file program recording file dependencies in a makefile maintaining systems using the make utility 47 how to implement lists using lists to conserve memory internal and external pointers the null pointer, null 48 how to make one class a friend of another class 49 how to reuse class definitions using templates 50 how to iterate over lists using iteration class objects appendix a: operator precedence appendix b: formatted display colophon... index |
商品评论(0条)