CE5143: C++ Programming
School | Continuing and Professional Education |
Department Code | LEARN |
Module Code | CE5143 |
External Subject Code | 100956 |
Number of Credits | 10 |
Level | L5 |
Language of Delivery | English |
Module Leader | Dr Edward Evans |
Semester | Spring Semester |
Academic Year | 2018/9 |
Outline Description of Module
Topics covered in this course include an introduction to classes and objects, class variables, constructors and functions, overloaded constructors and functions, public and private access to variables and functions, arithmetic operators, simple input and output, comparison operators and the use of conditional and iterative control statements, formatting of output, use of library functions and the creation of user defined functions, introduction to pointers, introduction to arrays, accessing arrays using both subscripts and pointers, using classes containing static functions and static variables, introduction to inheritance by creating a derived class from a base class, inherited and overridden functions in the derived class, use of the new and delete operators to dynamically allocate and release memory, use of the fstream library functions to access files and use of user defined classes to write object-oriented programs. No prior knowledge of C++ is required.
On completion of the module a student should be able to
- understand the difference between a class and an object
- write an object-oriented program which uses user-defined classes
- write an application which uses inheritance and contains both inherited and overridden functions
How the module will be delivered
This module includes a mix of traditional lectures and laboratory sessions
11 meetings of 3 hrs. Each meeting starts with a lecture and finishes with a laboratory session.
33 contact hours.
Skills that will be practised and developed
Whilst studying this module, students will practise
- the selection of the appropriate program construct for the solution of a problem
- use user defined classes to write object-oriented programs
- analyse a programming problem and write a well-structured C++ program
How the module will be assessed
Formative assessment takes the form of assignments submitted to the tutor
Summative assessment is by means of a two hour written class test.
The opportunity for reassessment in this module
Student may repeat the class test.
Assessment Breakdown
Type | % | Title | Duration(hrs) |
---|---|---|---|
Written Assessment | 100 | Coursework | N/A |
Syllabus content
Introduction to data types, classes and objects
The difference between public and private access to functions and data
Introduction to constructors and a discussion of what is meant by an overloaded constructor
Relational and logical operators
Use of conditional and iterative control statements
Accessing arrays using subscripts and pointers
Formatting of output
Use of static functions and static variables within a class
Use of new operator to dynamically allocate memory and use of delete operator to release memory
Introduction to inheritance by creating a derived class from a base class
Inherited and overriden functions in the derived class
Calling a specific base class constructor from the derived class
Base class access control
Command line argument processing
Writing and reading files using the fstream library functions
Essential Reading and Resource List
Schildt, H. (2003) C++ from the Ground Up. Osborne McGraw-Hill.