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 13
Page 92
... ( strl , " My name is " ) ; strcpy ( str2 , " Bill . " ) ; strcpy ( str3 , strl ) ; strcat ( str3 , str2 ) ; In this chapter , and in the two that follow , we'll build a new string type that is every bit as good as the string type in ...
... ( strl , " My name is " ) ; strcpy ( str2 , " Bill . " ) ; strcpy ( str3 , strl ) ; strcat ( str3 , str2 ) ; In this chapter , and in the two that follow , we'll build a new string type that is every bit as good as the string type in ...
Page 139
... strl + str2 . CStr operator + ( CStr strl , CStr str2 ) { } CStr new string ( strl ) ; new_string.cat ( str2.get ( ) ) ; return new_string ; CStr appears at the beginning of the function heading as the return - value type . To return a ...
... strl + str2 . CStr operator + ( CStr strl , CStr str2 ) { } CStr new string ( strl ) ; new_string.cat ( str2.get ( ) ) ; return new_string ; CStr appears at the beginning of the function heading as the return - value type . To return a ...
Page 286
... ( strl , str2 , and str3 ) . Note that status is private , even though not explicitly declared as such , because members are private by default . class CIOStr : public CStr { int status ; public : void input ( void ) ; void output ( void ) ...
... ( strl , str2 , and str3 ) . Note that status is private , even though not explicitly declared as such , because members are private by default . class CIOStr : public CStr { int status ; public : void input ( void ) ; void output ( void ) ...
Contents
Getting to Know C++ | 6 |
in english in plain english in | 16 |
What C++ Will Do for You | 17 |
Copyright | |
34 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 floating-point 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 lish loop macro malloc member functions memory block namespace nLength null operand operator overloading operator+ output pData plain english plain english glish pointer printf scanf setbuf sh in plain specified statement stdlib.h strcat strcpy stream string data struct symbol syntax template tion typeid unsigned variable virtual functions write