Programming C++  «Prev  Next»
Lesson 1

C++ Programming

This module introduces you to some basic differences between C and C++ and gives you the skills you need to start writing C++ programs.
You will learn:
  1. How simple input and output are handled
  2. How the structure of C and C++ programs differ
  3. About the use of bool expressions
  4. How C++ handles strings
  5. How C++ makes casts safer
  6. How declarations of enumerated types are handled in C++
  7. How C++ handles the scope of a declaration
  8. How to write comments in the single-line style
At the end of the module, you will be given the opportunity to take a quiz covering these topics.

Modern C++

Modern C++ is programming using the features of the latest incarnation of C++. This is the C++ language defined by the C++ 11 standard, which is being modestly extended and improved by the latest standard, C++ 14. This course relates to C++ as defined by C++14. There is no doubt that C++ is the most widely used and most powerful programming language in the world today, especially for microprocessors and embedded systems. If you were just going to learn one programing language, C++ is the ideal choice. It is effective for developing applications across an enormous range of computing devices and environments: for
  1. personal computers,
  2. workstations,
  3. mainframe computers,
  4. tablets, and
  5. mobile phones.

Just about any kind of program can be written in C++ from device drivers to operating systems, from payroll and administrative programs to games. C++ compilers come in a large variety and there are up-to-date compilers that run on PCs, workstations, and mainframes, often with cross-compiling capabilities, where you can develop the code in one environment and compile it to execute in another. C++ comes with a very extensive Standard Library. This is a huge collection of routines and definitions that provide functionality that is required by many programs. Examples are
  1. numerical calculations,
  2. string processing,
  3. sorting and searching,
  4. organizing and managing data, and
  5. input and output.
The Standard Library is so vast that I will only scratch the surface of what is available. Beginning STL is a companion book that is a tutorial on using the Standard Template Library, which is the subset of the C++ Standard Library for managing and processing data in various ways.
Given the scope of the language and the extent of the library, it is not unusual for a beginner to find C++ somewhat daunting. It is too extensive to learn in its entirety from a single book. However, you do not need to learn all of C++ to be able to write substantial programs. You can approach the language step by step, in which case it really is not difficult. An analogy might be learning to drive a car. You can certainly become a very competent and safe driver without necessarily having the knowledge and experience to drive in the Indy 500. With this course you can learn everything you need to program effectively in C++.