Posted 01 January 2015 - 09:11 PM
While this is a good start I a few comments and suggestions.
- Include Headers - Missing #include "headerfile".
- Common headers - math should be cmath.
- Namespace - this is a using statement, not a namespace. Also using namespace std; should be discouraged not promoted in such a generalized way.
- Data types - missing short, long, long long, and long double. The last two were added in C++11.
- Switch/case - <constant#> and <constantn+1> can be generalized with <constant-expression>. <constantn+1> can be removed without losing clarity.
- I/O Operators - cin >> var1, var2, var3; does not appear to be correct for that context. Should likely be cin >> var1 >> var2 >> var3;. This section could be moved into a separate Standard Library Reference.
- File I/O - This section could be moved into a separate Standard Library Reference.
- File Mode Constants - Might be a good idea to include which header they are defined in. This section could be moved into a separate Standard Library Reference.
- Function Prototype - This is a function definition not a declaration or prototype.
- Class Prototype - This is a class definition not a declaration or prototype. The comments can be more specific to detail accessibility (i.e. //members accessible by everyone, //members accessible by the class and derived classes, //members accessible by the class).
- Structure Prototype - This is a struct definition not a declaration or prototype. There should be some indication that <object name> is optional. Also class and struct are synonymous and the only difference is default accessibility of members and inherited members. This could be merged with class information.