|
> class Foo > { > public: > Foo(); > > int memberVariable; > > void myMethod(int argument,int anotherArgument); > }; >
My personal favourite. However....
class Foo { public: Foo(); int memberVariable; void myMethod(int argument,int anotherArgument); };
surely? no need to waste all that lovely space :)
of course in my code there would be doxygen comments attached to all the functions and variables, so that takes more space.
I find even if I'm writing a fairly small piece of code to only use in one place it's helpful to write and keep uptodate doxygen comments, because when you describe what a function does, what inputs it takes and what it outputs then if the function have become a horrible mess then it's fairly obvious :)
MrJeff
|