460-8701/01 – Programming in C/C++ (CPP)
Gurantor department | Department of Computer Science | Credits | 4 |
Subject guarantor | doc. Mgr. Jiří Dvorský, Ph.D. | Subject version guarantor | doc. Mgr. Jiří Dvorský, Ph.D. |
Study level | undergraduate or graduate | Requirement | Compulsory |
Year | 1 | Semester | winter |
| | Study language | Czech |
Year of introduction | 2010/2011 | Year of cancellation | 2020/2021 |
Intended for the faculties | USP | Intended for study types | Follow-up Master, Master |
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
Additional study materials
Way of continuous check of knowledge in the course of semester
E-learning
Other requirements
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
Occurrence in study plans
Occurrence in special blocks
Assessment of instruction