Skip to content

arunabhcode/C-tips-tricks-and-idioms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 

Repository files navigation

C++ tips, tricks, question, idioms, etc.

C++ FAQS

Herb Sutter gotw
https://herbsutter.com/gotw/

Bjarne Stroustrup
http://www.stroustrup.com/bs_faq.html
http://www.stroustrup.com/C++11FAQ.html

https://isocpp.org/faq

Books

http://www.aristeia.com/books.html
private constructor

swap trick

prevent class inheritance
http://stackoverflow.com/questions/2184133/prevent-class-inheritance-in-c

virtual destructor

virtual inheritance
http://stackoverflow.com/questions/21558/in-c-what-is-a-virtual-base-class

virtual function
http://stackoverflow.com/questions/2391679/why-do-we-need-virtual-functions-in-c

inheritance and default constructor
http://stackoverflow.com/questions/4352169/default-constructor-for-an-inherited-class

private destructor
http://stackoverflow.com/questions/631783/what-is-the-use-of-having-destructor-as-private

operator overloading outside class
https://stackoverflow.com/questions/2425906/operator-overloading-outside-class

#Patterns

singleton pattern

decorator pattern

factory pattern

detect unused #include files
http://stackoverflow.com/questions/74326/how-should-i-detect-unnecessary-include-files-in-a-large-c-project
http://stackoverflow.com/questions/614794/c-c-detecting-superfluous-includes

Interview questions:

https://github.com/Hawstein/cracking-the-coding-interview

About

C++ tips tricks and idioms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published