Безопасен C++. Препоръки и примери за обучението
Автори:
Ивайло
Дончев
Великотърновски университет „Св. св. Кирил и Методий“, България
Страници:
128-
143
DOI: https://doi.org/10.54664/IYIX3897
Резюме:
C++ has long been criticized as a memory-unsafe language that creates prerequisites for security vulnerabilities and system crashes. Given the wide distribution of software written in this language, it is not economically justified to immediately replace it with a new one. This article posits that the problem lies not so much in the language itself, but rather in the way it is used. It discusses all vulnerabilities of the language and how they can be avoided using modern language features and helper tools. Techniques and good practices are promoted to enable the use of C++ in a safe way without affecting its performance. Guidelines for organizing programming training for students and appropriate teaching examples are provided.
Ключови думи:
C++, memory safety, undefined behavior, initialization, education, programming, value semantics.
Изтегляне
172 изтегляния от 9.12.2025 г.