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 note covers the following topics: User defined types, structures,
unions, polymorphism, encapsulation, Abstraction mechanism, Inheritance,
Operator Overloading, Exception handling, Dynamic memory management, Template,
Namespaces.
This
note teach you following topics in C++: Gentle introduction to C++, File
I/O, Arrays and loops, Detailed explanation of classes with built-in arithmetics,
Computational efficiency aspects, Object-oriented programming and class
hierarchies, Using C++ objects in numerical applications.