460-2068/01 – C++ Programming I (C++ I)
Gurantor department | Department of Computer Science | Credits | 4 |
Subject guarantor | doc. Ing. Petr Gajdoš, Ph.D. | Subject version guarantor | doc. Ing. Petr Gajdoš, Ph.D. |
Study level | undergraduate or graduate | Requirement | Optional |
Year | 2 | Semester | summer |
| | Study language | Czech |
Year of introduction | 2019/2020 | Year of cancellation | |
Intended for the faculties | FEI | Intended for study types | Bachelor |
Subject aims expressed by acquired skills and competences
The aim of the subject is to familiarize students with C++ language in their latest form such that they can understand the basic constructions of the language and the runtime environment. The students will be able to create complex desktop applications in this language.
Knowledge and skills:
- C++ from the standard c++11 above
- OOP principles projected into the C++ language
- Basic knowledge of "Standard Library (STL)" and useful classes
- Understanding complex constructs
- Knowledge of the selected development environment
- Console application creation
- Designing custom classes with required functionality
After completing the course, the student should be able to design and implement a problem-solving application with the knowledge of object-oriented programming using the latest features of C++ language.
Teaching methods
Lectures
Tutorials
Summary
Students will deepen the knowledge of object-oriented programming with respect to the use of C++ language, which belongs to the most used languages. The course builds on the "Introduction to Programming" and "Object-Oriented Programming" courses and requires that the students have already successfully passed these courses.
Compulsory literature:
[1] Stroustrup, Bjarne. The C++ programming language. Upper Saddle River, NJ: Addison-Wesley, 2013. Print.
[2] Bancila, Marius. Modern C++ programming cookbook : over 100 recipes to help you overcome your difficulties with C++ programming and gain deeper understanding of the working of modern C. Birmingham, UK: Packt Publishing, 2017. Print.
Recommended literature:
[1] Galowicz, Jacek. C++17 STL Cookbook. Birmingham: Packt Publishing, 2017. Print.
[2] Savitch, Walter J., and Kenrick Mock. Problem solving with C++. 9th Edition, Boston: Pearson, 2015. Print.
Way of continuous check of knowledge in the course of semester
Continuous monitoring of study activities and assigned tasks during regular lessons.
The subject 460-2068/02 Programming in C++ I is required as a prerequisite for subject 460-2072/02 Programmin in C++ II.
E-learning
Other requirements
It is expected that students will actively solve the assigned tasks in programming lessons. Some tasks may require careful home preparation.
Prerequisities
Co-requisities
Subject has no co-requisities.
Subject syllabus:
Lectures will serve as an entry point for exercises. They set themselves the objective of introducing students into the problematics and outlining the subsequent work on the exercises.
Lectures will include at least the following topics:
- type system, from basic data types to object type, conversion type
- working with pointers and references, the basic principle of "smart pointers"
- operators and their overloading
- program flow controlling
- principles of Object Oriented Programming projected into the C++ language
- standard library
-- exception system
-- iterators and their types
-- working with files
-- console application creation
-- more selected STL classes
Practical exercises on computer labs will correspond to lecture notes:
1. Basic data types, struct, union
2. Memory allocations, pointers, references, smart pointers
3. Program flow controling
4. Operators, their overloading, bit operators and their usage
5. Principles of OOP projected into C ++
6. Familiarize with the standard library and the concept of their classes
7. Exceptions and their usage
8. Construction of different types of iterators and their usage
9. Working with text and binary files
10.-12. Case Study: Creation of a more complex console application - data processing
13. Other selected classes from STL
14. Verification of knowledge
Conditions for subject completion
Occurrence in study plans
Occurrence in special blocks
Assessment of instruction