Tutorial: Operator Overloading in C++

preview_player
Показать описание
This video provides a brief tutorial video covering operator overloading in C++, compared with operator overloading in Ruby.

Note: There is a bug in the code for the overloaded operator in the C++ class, the correct code is:

This doubles as a lesson in the dangers of copying/pasting code. Always remember: friends don't let friends copy and paste code.

URLs featured in the video:
Рекомендации по теме
Комментарии
Автор

I know it's two years late but in your correction in the description which Rectangle result are you talking about? The first one your created or the inline function?

gloob
visit shbcf.ru