Где искать: по сайтам Запорожской области, статьи, видео ролики
пример: покупка автомобиля в Запорожье
In this video, I’ll explain C++ Operator Overloading from beginner to advanced and teach you about operator functions.
In C++ overloaded operators are functions with special names: the keyword “operator” followed by the symbol for the operator being defined (ex. operator+, operator-, operator==, etc.)
Which operators can be overloaded?
-Most operators can be overloaded, the exceptions are . (dot) :: ?: sizeof
There are two types of operator functions: global operator functions and member operator functions.
In the video, I’ll teach you about both and I’ll also demonstrate how to do operator overloading for the most important operators and explain common errors that happen with operator overloading
???? Download PVS-Studio for free with #code_beauty promo code: https://bit.ly/PVS_Studio
▶️ PVS-Studio YouTube channel – https://www.youtube.com/channel/UCgOtSopdNjACcxXQpdGQEnA/
???? PVS-Studio Facebook group - https://www.facebook.com/StaticCodeAnalyzer
C++ Structures - https://youtu.be/9j5KkOC_goQ
C++ Classes and constructors - https://youtu.be/iVLQeWbgbXs
Contents:
00:00 - Intro
01:01 - This is how I analyze my code
01:54 - Introduction to operator overloading and operator functions in C++
07:29 - Ostream operator overloading (insertion operator)
18:12 - Overloading += operator
21:35 - Different types of operator functions (global vs member functions)
23:57 - Ostream operator overloading (insertion operator)
26:57 - Overloading -= operator
28:34 - C++ operator overloading common errors
34:16 - Results of the PVS-Studio code analysis