-
C++ FAQ Sections
- <a href="https://forums.codeguru.com/showthread.php?350760-FAQ-Index/#cpp_general">General</a>
- <a href="https://forums.codeguru.com/showthread.php?350760-FAQ-Index/#cpp_preprocessor">Preprocessor</a>
- <a href="https://forums.codeguru.com/showthread.php?350760-FAQ-Index/#cpp_classes">Classes</a>
- <a href="https://forums.codeguru.com/showthread.php?350760-FAQ-Index/#cpp_memory_management">Memory Management</a>
- <a href="https://forums.codeguru.com/showthread.php?350760-FAQ-Index/#cpp_operator">Operator</a>
- <a href="https://forums.codeguru.com/showthread.php?350760-FAQ-Index/#cpp_exception">Exception Handling</a>
- <a href="https://forums.codeguru.com/showthread.php?350760-FAQ-Index/#cpp_structure">Structure</a>
- <a href="https://forums.codeguru.com/showthread.php?350760-FAQ-Index/#cpp_casting">Casting</a>
- <a href="https://forums.codeguru.com/showthread.php?350760-FAQ-Index/#cpp_callback">Callback</a>
- <a href="https://forums.codeguru.com/showthread.php?350760-FAQ-Index/#cpp_template">Template</a>
- <a href="https://forums.codeguru.com/showthread.php?350760-FAQ-Index/#cpp_polymorphism">Polymorphism</a>
- <a href="https://forums.codeguru.com/showthread.php?350760-FAQ-Index/#cpp_design_pattern">Design Pattern</a>
- <a href="https://forums.codeguru.com/showthread.php?350760-FAQ-Index/#cpp_profiling">Profiling</a>
- <a href="https://forums.codeguru.com/showthread.php?350760-FAQ-Index/#cpp_random_number">Random Number</a>
- <a href="https://forums.codeguru.com/showthread.php?350760-FAQ-Index/#cpp_string">String</a>
<hr noshade size="4">
<h3 id="cpp_general" style="color:#2F4F4F;margin-top:0;margin-bottom:0;">General</h3>
- What are good books about C++?
- How do I convert between big-endian and little-endian values?
- What do 'ntohl()' and 'htonl()' actually do?
- How to declare and use two-dimensional arrays?
- What are different number representations?
- How is floating point representated?
- How to deal with references?
- What are the principles of Object-Oriented Design?
- What are the differences between inline functions and macros?
- What is the 'this' pointer?
- What are different methods to pass parameters to functions?
- What are C++ Headers?
- How to minimise mutual dependencies?
- What are different methods to access identifiers from a namespace?
<h3 id="cpp_preprocessor" style="color:#2F4F4F;margin-top:0;margin-bottom:0;">Preprocessor</h3>
- How to avoid problems with include files?
- What are '__FILE__' and '__LINE__'?
- What is the purpose of include guards?
<h3 id="cpp_classes" style="color:#2F4F4F;margin-top:0;margin-bottom:0;">Classes</h3>
- What is the initialization list and why should I use it?
- What members of a class are implicitly defined?
- What are the differences between classes and structs?
- Does implicitly-defined copy constructor bitwise copy?
- Which are the differences between 'struct' and 'class'?
<h3 id="cpp_memory_management" style="color:#2F4F4F;margin-top:0;margin-bottom:0;">Memory Management</h3>
- What is the difference between 'delete' and 'delete[]'?
- How to release memory for an array of pointers?
- Why does deleting a pointer cause my program to crash?
- Why does declaring an array cause my program to crash?
- What is the difference between 'const char*' and 'char*const'?
- What are the differences between constant objects?
- What is the purpose of a constant reference?
- What is the difference between malloc/free and new/delete?
<h3 id="cpp_operator" style="color:#2F4F4F;margin-top:0;margin-bottom:0;">Operator</h3>
- How to overload postfix increment and decrement operators?
- Why should I use '++i' instead of 'i++'?
- How to deal with operator overloading?
<h3 id="cpp_exception" style="color:#2F4F4F;margin-top:0;margin-bottom:0;">Exception Handling</h3>
- The wrong catch statement catches an exception! Why?
<h3 id="cpp_structure" style="color:#2F4F4F;margin-top:0;margin-bottom:0;">Structure</h3>
- How do I write a structure to a file?
- Why returns 'sizeof()' a bigger size than the members actually need?
<h3 id="cpp_casting" style="color:#2F4F4F;margin-top:0;margin-bottom:0;">Casting</h3>
- What are the C++ casting operators?
<h3 id="cpp_callback" style="color:#2F4F4F;margin-top:0;margin-bottom:0;">Callback</h3>
- How to use class member functions as callbacks?
<h3 id="cpp_template" style="color:#2F4F4F;margin-top:0;margin-bottom:0;">Template</h3>
- Why do I get unresolved externals with my template code?
<h3 id="cpp_polymorphism" style="color:#2F4F4F;margin-top:0;margin-bottom:0;">Polymorphism</h3>
- What is polymorphism?
- How to use virtual functions?
<h3 id="cpp_design_pattern" style="color:#2F4F4F;margin-top:0;margin-bottom:0;">Design Pattern</h3>
- What is a Design Pattern?
- What is a Singleton class?
<h3 id="cpp_profiling" style="color:#2F4F4F;margin-top:0;margin-bottom:0;">Profiling</h3>
- How do I determine the speed of a particular function or operation?
- Which is faster: <...> or [...]?
- How can I optimize my code?
<h3 id="cpp_random_number" style="color:#2F4F4F;margin-top:0;margin-bottom:0;">Random Number</h3>
- Why does my random number generator always return the same set?
- What are good random number generators?
<h3 id="cpp_string" style="color:#2F4F4F;margin-top:0;margin-bottom:0;">String</h3>
- What types of strings are there?
- What is the difference between '\n' and '\r\n'?
- How to use 'CString' in non-MFC applications?
- How to assign or compare strings?
- What is the difference between 'CString' and 'std::string'?
- How to convert between 'CString' and 'std::string'?
- How to convert a numeric type to a string?
- How to convert a string into a numeric type?
<br><br>