These lecture notes are designed for an
introductory course on programming, using the imperative core of C++, and given
to MSc (Computing Science) students at Imperial College London at the very
beginning of their course. The students attend an intensive series of lectures
and laboratory sessions over two weeks, carrying out lab work using the GNU g++
compiler on PCs running a flavour of UNIX. Since the course is intended for
graduates from disciplines other than Computer Science, very little previous
programming experience is assumed. This note covers the following topics:
introducing C++, ANSI/ISO C, the C++ programming environment in unix, an
example C++ program, very simple input output and assignment, simple flow of
control, preliminary remarks about program style, variables types and
expressions, identifiers, data types, integers, real numbers, type casting,
characters, strings, user defined data types,etc..
Author(s): Rob Miller, David
Clark, Bob White and William Knottenbel
This book covers the
following topics: Low-level Languages, High-level Languages, Translating
Programming Languages, Programming Paradigms, The Code 26, Internal storage of
data types, Variables, Scope, Operators, Control Flow Construct Statements,
Standard C Library, Debugging, Object Oriented Programming, Structures, Unions,
Classes, Copy Constructor, Equality Operator, Inequality Operator, Operator
overloading, Exception Handling, Run-Time Type Information, Standard Template
Library, Cross-Platform development.
This note explains
the following topics: Inheritance, Protecting the Class Data, Polymorphism,
Operator Overloading, Casts, Macros, Templates and Smart Pointers, Compiling
with C++11 features, Exception Handling.