Thank you very much ! It works very well
I have a question though. It's more about good practice in C++.
I'm learning with a book in which they put the javadoc-like documentation on top of the declaration of each method in the header file. I'm talking about the documentation that looks like this :
/** This method does this or that.
* @param arg Description of the param
* @return Description of the return value
*/
Then there's no comments in between methods in the cpp file.
It's also how Eclipse CDT automatically generates them.
I see that Codeblock automatically writes those in the cpp file with the method you gave me. And doesn't write any comments in the header file.
I check CodeLite and it doesn't put any comments at all. :?
So, what is best practice in c++ ? Should I put the documentation for the methods and variables in the header file or in the cpp file ?
It feels like it's easier to read in the header file but I just want to make sure it's the proper way to do it.
And if so, is there a way to remove those comments from what CodeBlock generates ?