![]() The comment is found at the end of the line of code after the constant has been defined. In this page so many small application like a mini projects for beginner. It is recommended to gather all your code trees in a subdirectory of your project to avoid analyzing irrelevant source files like files generated by your build. In these examples, the compiler will define a constant called AGE that contains the value of 6. In this page list of Most Popular C/C++ projects with source code and report. OR #define AGE 6 // This constant is called AGE You can create a comment that displays at the end of a line of code.įor example: #define AGE 6 /* This constant is called AGE */ The compiler will assume that everything after the /* symbol is a comment until it reaches the */ symbol, even if it spans multiple lines within the C program. * Purpose: To show a comment that spans multiple lines. You can create a comment that spans multiple lines. This form of commenting may be used with most modern C compilers if they also understand the C++ language. The following is an example of this: // Author: we usually do not comment the code itself The main reason for such decision: it is really hard to keep. You can create an comment on a single line.įor example: /* Author: */Ĭ++ introduced a double slash comment prefix // as a way to comment single lines. Below you can find main principles of code documentation we use on real C++ project.
0 Comments
Leave a Reply. |