Sei sulla pagina 1di 3

Course name C++ Code 0002042800 Credit 6

points
Language of instruction English

Program Mechanical Engineering and Applied Computer Science


Type of studies MSc

Unit running the Division of Working Machines Drives and Control, K-19
programme

Course coordinator and dr inż. J. Grudziecki


academic teachers

Form of classes and Semester Lec. Tut. Lab. Proj. Sem. Credit
number of hours points
7 – winter 30e - 30 - - 6

Learning outcomes The course is designed to provide transition between structured programming and object
oriented programming. It develops a functional understanding of simple and complex data
structures and learns coding in a high level programming language using text and visual
environment.

Prerequisites Completed Computer Science course from 1st year, code 0002011300 and 0002011400

Course description LECTURE


The parts of a C++ Program. Variables and constants. Expressions and statements.
Functions. Declaration versus definition.
Operators. Streams. Reading and writing data. Disk files.
Program flow. Selection and iteration structures.
Libraries. Basic standard functions. User defined libraries. Preprocessor.
Basic classes. Constructors and destructors.
Pointers and references.
Arrays in C++.
Polymorphism and Inheritance in C++.
Object oriented analysis and design.

LABORATORY
Borland C++ environment. Sample programs, structure, variables and their declaration.
Numeric operators, methods of notation, precedence. Examples.
Input/Output statements. Program flow, selection and iteration structures. Examples.
Standard libraries. Communication, creation of own external functions.
Concept of classes. Declaration, examples, initialisation.
MS Visual C++ environment, advantages. Examples.
Pointers and references. Subprogram communication. Transferring data.
Arrays. Declaration, transfer between the modules. Sample methods of sorting arrays.
Polymorphism. Simplification of the code.
Concept of Object Oriented Programming, examples.
Individual projects presented by the students.

Form of assessment - written quizes ~ 20%


- graded laboratory work, which is taken in mid period ~30 %
- final written examination (test and descriptive form) ~50 %.

Basic reference materials 1. Liberty J.:Teach yourself C++ in 21 days.Sams Corporation 2001.
2. Text notes given by the instructor
Other reference 1. Walter J., Kalev D., Tobler M.J.: C++. How To. Sams Corporation.1999.
materials
2. Jakubczyk K. Turbo Pascal I Borland C++. Przykłady. Helion Gliwice 2002
e-mail of the course coordinator J. Grudziecki: jang@p.lodz.pl tel. 22-57
and academic teachers
Average student workload 60 + 20
(teaching hours + individ )
Remarks:
Updated on: 26.09.2004

Potrebbero piacerti anche