460-8701/02 – Programming in C/C++ (CPP)

Gurantor departmentDepartment of Computer ScienceCredits4
Subject guarantordoc. Mgr. Jiří Dvorský, Ph.D.Subject version guarantordoc. Mgr. Jiří Dvorský, Ph.D.
Study levelundergraduate or graduateRequirementCompulsory
Year1Semesterwinter
Study languageEnglish
Year of introduction2015/2016Year of cancellation
Intended for the facultiesUSPIntended for study typesMaster, Follow-up Master
Instruction secured by
LoginNameTuitorTeacher giving lectures
DVO26 doc. Mgr. Jiří Dvorský, Ph.D.
Extent of instruction for forms of study
Form of studyWay of compl.Extent
Full-time Graded credit 2+2
Combined Graded credit 2+6

Subject aims expressed by acquired skills and competences

The aim of the subject is practical programming in C++ applying the whole lifecycle of a programme, debugging and tuning of the code. Modern and object oriented parts of C++ and template library are highlited. The reasonable part of a semestral project is the documentation for programmer and for user.

Teaching methods

Lectures
Tutorials

Summary

Intrinsic data types and structures and pointers are covered, plus the language constructs for loops, relational expressions, branching statements and the C++ build process. C++ extensions and additions to the C language, such as class construct and objects and messages, are examined. Students gain practice in using the concepts of class membership, templates and hierarchy (including inheritance), function overloading, operator overloading and virtual functions. Upon completion, students are able to write a complex C++ program, having multiple source files and using address-based and object oriented programming.

Compulsory literature:

ECKEL. Bruce. Thinking in C++. Prentice Hall Stroustrup, B.: The programming language C++ SCHILDT. Herbert. Teach yourself. Osborne

Recommended literature:

ECKEL. Bruce. Thinking in C++. Prentice Hall Stroustrup, B.: The programming language C++ SCHILDT. Herbert. Teach yourself. Osborne

Way of continuous check of knowledge in the course of semester

E-learning

Další požadavky na studenta

There are not defined other requirements for student.

Prerequisities

Subject has no prerequisities.

Co-requisities

Subject has no co-requisities.

Subject syllabus:

Lectures: The algorithm , the means for algorithm notation Introduction to C, input and output, how the processor code is created. Source code, object code, linking, compilation. Data types, operators, expressions, constants. Operators - arithmetical, assignment, relational, logical, conditionl expression, type conversion Statements and blocks. Comma operator. Break and continue statements. Register variables. Loop statements for and do-while. Simple program. Arrays. Functions. Automatic and external variables. Recursive functions Pointers, arrays, functions. Pointers and addresses, pointers and function arguments. Pointers and arrays. Pointers and constants. Command line arguments. Initialization of arrays and arrays of pointers. Standard C library functions. Making library functions in Code Warrior environment. Structures, classes, unions, bit arrays, structures and classes, Array of structures, union type, anonymous type union and bit array. Object oriented programming. Classes and objects in C++. Access modifiers. Inheritance. Polymorphism in C++, early and late binding. Overloading. Templates.

Conditions for subject completion

Full-time form (validity from: 2016/2017 Winter semester)
Task nameType of taskMax. number of points
(act. for subtasks)
Min. number of points
Graded credit Graded credit 100 (100) 51
        Project Project 100  51
Mandatory attendence parzicipation:

Show history

Occurrence in study plans

Academic yearProgrammeField of studySpec.FormStudy language Tut. centreYearWSType of duty
2019/2020 (N3943) Mechatronics (3906T006) Mechatronic Systems P English Ostrava 1 Compulsory study plan
2018/2019 (N3943) Mechatronics (3906T006) Mechatronic Systems P English Ostrava 1 Compulsory study plan
2017/2018 (N3943) Mechatronics (3906T006) Mechatronic Systems P English Ostrava 1 Compulsory study plan
2016/2017 (N3943) Mechatronics (3906T006) Mechatronic Systems P English Ostrava 1 Compulsory study plan
2015/2016 (N3943) Mechatronics (3906T006) Mechatronic Systems P English Ostrava 1 Compulsory study plan

Occurrence in special blocks

Block nameAcademic yearForm of studyStudy language YearWSType of blockBlock owner