Doxygen Comment Example Version 1.0
|
Illustrates doxygen-style comments for documenting a C++ program file and the functions in that file. More...
#include <iostream>
#include <string>
Functions | |
void | DoSomething (int numberOfPositions, char &firstInitial, string &stringOfInitials) |
A single statement goes here to give a high-level description of the function, which is ended by the first period. | |
int | numberOfDigits (int n) |
Compute and return the number of digits in a positive integer. | |
int | main () |
Illustrates doxygen-style comments for documenting a C++ program file and the functions in that file.
If you want to add any further detailed description of what is in the file, then place it here (after the first statement) and it will appear in the detailed description section of the HTML output description for the file.
void DoSomething | ( | int | numberOfPositions, |
char & | firstInitial, | ||
string & | stringOfInitials | ||
) |
A single statement goes here to give a high-level description of the function, which is ended by the first period.
Any further description of the function, such as this statement that comes after the first statement, will appear as part of the "detailed description" for this function. The brief description may also be repeated here immediately prior to the detailed description, but the configuration file for this example is currently set to disable that feature.
numberOfPositions | The number of positions firstInitial is to be moved forward. |
firstInitial | A character representing the first letter in a person's first name (for example). |
stringOfInitials | A string in which all characters are the same. |
int numberOfDigits | ( | int | n | ) |
Compute and return the number of digits in a positive integer.
The style used for the pre/post coditions of this function is purposely different from that for the void function given above, just so you can see the differnce in the HTML output.
n | An integer, the number of whose digits is desired. |
int main | ( | ) |