bl**********@gmail.com wrote:
Currently, whenever I write a new function, I have to copy and paste
/************************************************** ****************
* description of function
You mean, _literally_ those words? What's the point?
************************************************** ****************/
void foo ()
{
}
Is there a way to automatically generating the stars making up the
comment box?
I bet there is. Right next to that button that automatically generates
the function for you... Oh, did you mean you don't actually generate the
function automatically? Well, if you have to type the function, you must
realise that typing (or copy-pasting) the comment is essentially the only
way to go.
If its of any help, i use emacs.
Oh, of course it is of help. Go to the emacs newsgroup to ask about it.
You can probably write a script and tie it to a key somehow...
In C++ comments do not really serve any need, they are removed from the
code on very early stages of compilation, so the language does not have
any means to _create_ comments. BTW, if you haven't noticed, this is
a _language_ newsgroup.
V