1.C++ Idioms by Example, lesson 1IIntroducing some very basic C++ idioms, rules, guidelines and best practiceshaOlve [email protected] 2008 Disclaimer: most of the…