Are there any small projects that illustrate best practices of C++? It would be really great if one can learn a lot from one simple and fully commented project, rather than reading materials that show best practices with many unrelated snippets.
As an example, one of the header file of the project could look something like this:
#pragma once // Use 'pragma once' if your compiler supports it. Faster build time than using include guard. More explanation...
#ifndef MYHEADER_H // Traditional include guard, for compilers that do not support #pragma once
class Apple; // use forward declaration whenever possible to reduce build time