First, the code you posted starts with a wandering backward stroke. If this is valid in your code, you should remove it.
Secondly, the compiler will be happier and issue less warnings if you end your function with a string
return 0;
This is a good C ++ style and is recommended. (In your case, the line can really be reached, and in this case the line is not only good, but also necessary for proper operation. Check this out.)
Otherwise, your code looks correct, with the exception of some minor objections that could be raised regarding the obsolete use of the C-style #define style and with respect to one or two other minor style points. As for #define , this is not C ++ source code per se, but a preprocessor directive. It is actually processed by a program other than the compiler, and is removed and replaced with the appropriate C ++ code before the compiler sees it. The preprocessor is not interested in a semicolon. This is why the #define line does not end with a semicolon. Other lines starting with # usually end with a semicolon.
As @JoachimIsaksson noted, the desired semicolon may not helper_function.h at the end of the general_configuration.h file or the helper_function.h file. You should check the last line in each file.
source share