C++ Programming in Easy Steps / Edition 3

C++ Programming in Easy Steps / Edition 3

3.6 5
by Mike McGrath
     
 

C++ Programming In Easy Steps shows the reader how to program in C++, both on Windows platforms and on Unix-based platforms, such as Linux. It contains separate chapters on the major features of C++, plus complete example programs that illustrate each aspect.
Each chapter builds the reader's knowledge of C++. By the end of this book, the reader will haveSee more details below

Overview

C++ Programming In Easy Steps shows the reader how to program in C++, both on Windows platforms and on Unix-based platforms, such as Linux. It contains separate chapters on the major features of C++, plus complete example programs that illustrate each aspect.
Each chapter builds the reader's knowledge of C++. By the end of this book, the reader will have gained a sound understanding of the C++ language and be able to write C++ programs and compile them into executable files.
C++ Programming In Easy Steps is a great value and has an easy-to-follow style that will be useful to anyone who wants to begin programming in C++-programmers, students, and those who just need a fundamental understanding of object oriented programming.

Product Details

ISBN-13:
9781840783520
Publisher:
In Easy Steps Limited
Publication date:
05/01/2008
Series:
In Easy Steps
Edition description:
Third Edition
Pages:
192
Product dimensions:
7.30(w) x 8.90(h) x 0.60(d)

Table of Contents


Getting started     7
Introduction     8
Installing a compiler     10
Writing a first C++ program     12
Compiling & running programs     14
Creating variables     16
Employing variable arrays     18
Employing vector arrays     20
Declaring constants     22
Summary     24
Performing operations     25
Doing arithmetic     26
Assigning values     28
Comparing values     30
Assessing logic     32
Examining conditions     34
Establishing size     36
Setting precedence     38
Casting data types     40
Summary     42
Making statements     43
Branching with if     44
Switching branches     46
Looping for     48
Looping while     50
Declaring functions     52
Passing function arguments     54
Overloading functions     56
Optimizing functions     58
Summary     60
Handling strings     61
Creating string variables     62
Getting string input     64
Solving the string problem     66
Discovering string features     68
Joining & comparing strings     70
Copying & swapping strings     72
Finding substrings     74
Replacing substrings     76
Summary     78
Reading and writing files     79
Writing a file     80
Appending to a file     82
Reading characters & lines     84
Formatting with getline     86
Manipulating input & output     88
Predicting problems     90
Recognizing exceptions     92
Handling errors     94
Summary     96
Pointing to data     97
Understanding data storage     98
Getting values with pointers     100
Doing pointer arithmetic     102
Passing pointers to functions     104
Making arrays of pointers     106
Referencing data     108
Passing references to functions     110
Comparing pointers & references     112
Summary     114
Creating classes and objects     115
Encapsulating data      116
Creating an object     118
Creating multiple objects     120
Initializing class members     122
Overloading methods     124
Inheriting class properties     126
Calling base constructors     128
Overriding base methods     130
Summary     132
Harnessing polymorphism     133
Pointing to classes     134
Calling a virtual method     136
Directing method calls     138
Providing capability classes     140
Making abstract data types     142
Building complex hierarchies     144
Isolating class structures     146
Employing isolated classes     148
Summary     150
Processing macros     151
Exploring compilation     152
Defining substitutes     154
Defining conditions     156
Providing alternatives     158
Guarding inclusions     160
Using macro functions     162
Building strings     164
Debugging assertions     166
Summary     168
Programming visually     169
Generating random numbers      170
Planning the program     172
Assigning static properties     174
Designing the interface     176
Initializing dynamic properties     178
Adding runtime functionality     180
Testing the program     182
Deploying the application     184
Summary     186
Index     187

Read More

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >