C++ In Plain EnglishC++ In Plain English Second Edition Add the object-oriented power of C++ to your programming portfolio — and watch your career take off! Fully revised to cover the new ANSI C++ spec, Overland's classic book helps you crack the C++ language barrier with expert tips, sample code, and straight-forward explanations of each function, class, and keyword.
|
From inside the book
Results 1-3 of 89
Page 109
... string class . Best of all , there is no arbitrary limit of 256 bytes of storage . The cpy and cat functions make ... data area . But it has an important side effect . If the new string data is longer or shorter than the current string ...
... string class . Best of all , there is no arbitrary limit of 256 bytes of storage . The cpy and cat functions make ... data area . But it has an important side effect . If the new string data is longer or shorter than the current string ...
Page 110
... string data to the object's current string data ( pointed to by class variable pData ) . strcpy ( pData , s ) ; The cat ( concatenate ) member function is more complicated . It must create a new memory block but also copy data from the ...
... string data to the object's current string data ( pointed to by class variable pData ) . strcpy ( pData , s ) ; The cat ( concatenate ) member function is more complicated . It must create a new memory block but also copy data from the ...
Page 125
... string data is removed and now name2 has a pointer to nothing . name2 pData nLength name pData nLength String data Both objects point to the same data , so changes to one object corrupt the other Figure 6-1 Effects of simple a member ...
... string data is removed and now name2 has a pointer to nothing . name2 pData nLength name pData nLength String data Both objects point to the same data , so changes to one object corrupt the other Figure 6-1 Effects of simple a member ...
Contents
Getting to Know C++ | 6 |
in english in plain english in | 16 |
What C++ Will Do for You | 17 |
Copyright | |
39 other sections not shown
Common terms and phrases
allocate argument array atan2 base class binary bitwise bitwise operators bsearch bytes C/C++ cast CAuto char character CIOStr class CStr class declaration CMenuItem compiler const copy constructor cout CStr CStr class CStr object CTemp_point data members data type default constructor define delete derived class double dynamic_cast englis english i glish english in sh error example expr expression fgets following code following declaration fopen fsetpos func function call function definition function returns glish in plain header file ifstream implementation include cstdlib include iostream.h include math.h include stdio.h inline input integer keyword loop macro malloc member functions memory block namespace nLength null operand operator overloading operator+ output pData plain english plain english glish pointer printf scanf setvbuf sh in plain specified statement stdlib.h strcat strcpy stream string data strl struct structure symbol syntax template tion typeid unsigned variable virtual functions write