Skip to page content Skip to section menu Skip to site-wide navigation About Us | Consultancy | Training | Software | Publications | Open Source | Support | Open Standards | FAQ | Jobs
Site Style Info

Introduction to C++ Programming - A 5 day Course

Synopsis

Unlike many other introductory C++ courses that use Microsoft, or Borland integrated development environments this course is based on the gnu C++ compiler. Programmers attending this course will learn to write carefully thought out and well implemented C++ code and learn a lot about the GNU C++ compiler at the same time.

Principles of object oriented analysis and design and of UML are covered. The relationship between C and C++ is explored, and the course includes a thorough overview of C syntax.

Intended Audience

The course is for experienced programmers, with a basic knowledge of C, who will be developing applications in C++, predominantly in a Unix or Linux environment. The compiler used on the course will be the GNU C++ compiler running on a Linux workstation.

Knowledge of Object Oriented Analsysis and Design, and of UML, although useful is not needed, as these topics will be covered in sufficient detail in the course where appropriate.

This course can also be run on Microsoft Windows platforms using the Cygwin port of GNU to Microsoft Windows.

Key Skills

Practical Work

The course contains many simple programming exercises to reinforce the theory, and to stimulate understanding. Coverage of make and makefiles, and the various GNU C++ compiler options will be included at appropriate points in the course.

Scheduled and On-site Courses

Courses in this subject are scheduled on an 'ad-hoc' basis. We can arrange a course at our Carshalton centre or on customer site for any client wishing to send two or more delegates on the same course.

For courses at the Carshalton Centre the fee will be:

On-site course fees are as above + expenses recharged at cost.

For a 1:1 course in Carshalton the fee is £2750 + VAT. For a 1:1 on-site course the fee is £2750 + VAT + expenses recharged at cost.

If there are any dates showing below this line, a course has been scheduled and places for individuals are available at £1750. Otherwise, no courses are currently scheduled and the above fees apply.

Publicly scheduled dates, locations, and prices

A schedule of dates for this subject is not currently available. Please call 0800 651 0338 or use our contact form to enquire about places and availability.


Contents:

A background to object oriented thinking

  • Objects as things having attributes and methods
  • The message passing model of object interaction
  • Objects as instances of some class
  • Relationships between objects
  • Hierarchies of object classes
  • UML notation for describing classes and class hierarchies
  • UML for describing relationships between objects
  • Building more complex objects - composition and aggregation

Practical applications leading to object oriented approaches

  • Structured programming - modularity and information hiding
  • Simulation and modeling of complex communications, manufacturing and logistics systems
  • Artificial Intelligence (AI) - problem solving, planning, searching problems
  • Graphical User Interfaces - window managers, widgets and controls

Brief History of C++

  • Early C++ (translation of C++ code to C code)
  • C++ is not a pure object oriented language - C++ as an extension of C
  • C++ as an evolving language and the development of the ANSI C++ standard

An overview of the C in C++

  • Base data types (numeric char, integer and floating point types)
  • Pointers and arrays
  • Function prototypes and function pointers
  • Structs, pointers to structs and dynamic data structures
  • Typedefs, enums and macro
  • I/O in C
  • Replacing C based I/O (printf, scanf and all that) with C++ based I/O
  • Functions in C++
  • Function overloading
  • Name mangling / decorating
  • Mixing C and C++ code modules (use of extern C)
  • Operators and operator overloading in C++

Classes and instances

  • Member variables and member functions (private, public, protected)
  • Constructors and destructors
  • Default constructors and default destructors
  • Initialiser lists
  • Derived classes
  • Arrays of classes

More advanced aspects of working with classes and instances

  • Copy constructors
  • Deep vs. shallow copying
  • Virtual functions and virtual classes (compile time vs. run time binding)
  • Introduction to implementing dynamic data structures using classes (using linked lists and binary trees as examples)
  • Friend classes and friend functions
  • Static member variables and static member functions
  • An introduction to templates and to the Standard Template Library

A more detailed look at input and output in C++

  • The C++ iostream classes
  • Overloading the insertion and extraction operators for use with user defined classes
  • Reading and writing to files
  • Basics of object and data persistence