Some development environments (Visual Studio, Borland C ++ Builder, for example, eclipse should also have this function) automatically list the arguments of the function when entering a bracket ( .

For these IDEs, it is generally recommended that you verify that the function argument names (inside the headers) are as detailed as possible, as they serve as documentation.
Even if the programmer does not have an IDE with this function, the forward declarations of the function (in the headers) should always be as descriptive as possible. For the same reason, it is easier to open the header and read which functions should have values, rather than looking for the body of the function within the set of *.cpp files.
Not to mention the fact that in some functions you cannot determine what parameters should mean without parameter names.
For instance,
Image::blitRect(int, int, int, int);
may be
Image::blitRect(int x1, int x2, int y1, int y2); Image::blitRect(int x1, int y1, int x2, int y2); Image::blitRect(int x, int y, int width, int height);
Of course, a C ++ programmer would add classes for Point and Size in this situation, but that's a different story.
source share