Department of Computer Science
Next: Unit 2, Functions and
Up: Course study guide
Previous: Previous examination paper
Unit 1, Introduction to C++
Subsections
Topic 1: The history and overview of C++
will give some idea of why the language is as it is.
Relating features of C++ to those in Eiffel will, it is hoped,
make it easier to understand.
Topic 2: The program structure and basic data types, declarations, and statements.
This topic will introduce the very basic elements and enable you to write very simple programs.
At the end of this you should be able to:
- write a tiny C++ program,
- see how C++ and Eiffel have some similar constructs despite superficial
differences,
- Firstly get access to a C++ compiler, see getting a compiler earlier
- Read the material in Introduction to C++
the first section
of the C++ notes ``Introduction to C++''. This is general material
but it might be useful to get a better idea of the history
of the language.
- Read the second section, C++ after Java or Eiffel,
it is a brief description of the
similarities and differences between Eiffel and C++.
- The next section, ``Essential features of object-oriented languages''
is not important, it is about basic object oriented concepts
with which you should be familiar. It is intended for people with no experience
of object oriented programming.
- Now get started with practical C++ programming:
read the beginning of the ``C++ Basic Components and Layout'' up to and including
sub-section
. Then do the exercises the answers are in the appendix.
- Lastly the Second example. This does not have an associated exercise.
C++ is a very old language. Under the surface it has similar constructs to Eiffel
though this is not always obvious.
However there are some differences that are hard to understand
if your only previous experience is Eiffel.
You should now have written and run a small C++ program.
To contents
Next: Unit 2, Functions and
Up: Course study guide
Previous: Previous examination paper
Page generated: 2002-11-04 by Bob Dickerson
© University of Hertfordshire Higher Education Corporation (1998)
Disclaimer