skip navigation
In detail

C++ Programming in easy steps, 3rd edition

By Mike McGrath
£10.99

Publication: March 19, 2008
Pages: 192
ISBN: 978-1-84078-352-0

 

About the book

C++ Programming in easy steps instructs you how to program in the powerful C++ language, giving complete examples that illustrate each aspect.

C++ Programming in easy steps begins by explaining how to download and install a free C++ compiler so you can quickly begin to create your own executable programs by copying the book's examples. It demonstrates all the C++ language basics before moving on to provide examples of Object Oriented Programming. The book concludes by demonstrating how you can use your acquired knowledge to create programs graphically in the free Microsoft Visual C++ Express Integrated Development Environment (IDE).

C++ Programming in easy steps makes no assumption you have previous knowledge of any programming language so it's ideal for the newcomer to computer programming. It has an easy-to-follow style that will appeal to programmers moving from another programming language, and to the student who is studying C++ programming at school or college, and to those seeking a career in computing who need a fundamental understanding of object oriented programming.

About the author

Mike McGrath now lives in South-east Europe, on the sun-kissed shores of the Aegean Sea. Mike gained his extensive knowledge of computer languages while working as a developer contracting to companies around the world. His interests include coins of ancient Greece, dining-out with friends, and the ongoing evolution of the world wide web.

Contents

  1. See sections in chapter 1Getting started
    • Introduction
    • Installing a compiler
    • Writing a first C++ program
    • Compiling & running programs
    • Creating variables
    • Employing variable arrays
    • Employing vector arrays
    • Declaring constants
    • Summary
  2. See sections in chapter 2Performing operations
    • Doing arithmetic
    • Assigning values
    • Comparing values
    • Assessing logic
    • Examining conditions
    • Establishing size
    • Setting precedence
    • Casting data types
    • Summary
  3. See sections in chapter 3Making statements
    • Branching with if
    • Switching branches
    • Looping for
    • Looping while
    • Declaring functions
    • Passing function arguments
    • Overloading functions
    • Optimizing functions
    • Summary
  4. See sections in chapter 4Handling strings
    • Creating string variables
    • Getting string input
    • Solving the string problem
    • Discovering string features
    • Joining & comparing strings
    • Copying & swapping strings
    • Finding substrings
    • Replacing substrings
    • Summary
  5. See sections in chapter 5Reading and writing files
    • Writing a file
    • Appending to a file
    • Reading characters & lines
    • Formatting with getline
    • Manipulating input & output
    • Predicting problems
    • Recognizing exceptions
    • Handling errors
    • Summary
  6. See sections in chapter 6Pointing to data
    • Understanding data storage
    • Getting values with pointers
    • Doing pointer arithmetic
    • Passing pointers to functions
    • Making arrays of pointers
    • Referencing data
    • Passing references to functions
    • Comparing pointers & references
    • Summary
  7. See sections in chapter 7Creating classes and objects
    • Encapsulating data
    • Creating an object
    • Creating multiple objects
    • Initializing class members
    • Overloading methods
    • Inheriting class properties
    • Calling base constructors
    • Overriding base methods
    • Summary
  8. See sections in chapter 8Harnessing polymorphism
    • Pointing to classes
    • Calling a virtual method
    • Directing method calls
    • Providing capability classes
    • Making abstract data types
    • Building complex hierarchies
    • Isolating class structures
    • Employing isolated classes
    • Summary
  9. See sections in chapter 9Processing macros
    • Exploring compilation
    • Defining substitutes
    • Defining conditions
    • Providing alternatives
    • Guarding inclusions
    • Using macro functions
    • Building strings
    • Debugging assertions
    • Summary
  10. See sections in chapter 10Programming visually
    • Generating random numbers
    • Planning the program
    • Assigning static properties
    • Designing the interface
    • Initializing dynamic properties
    • Adding runtime functionality
    • Testing the program
    • Deploying the application
    • Summary

Downloads

Win a Google Consultant for a Day

Lost?

Our site map can help you find the page you need.