你遇到过的源代码中最好的注释是什么?


当前回答

// sometimes I believe compiler ignores all my comments

其他回答

我发现了这个:

I'm not sure what I did
/* You are not meant to understand this */ 
// I don't know why I need this, but it stops the people being upside-down

x = -x;
if(m_measures =/*=*/ --index)
{
    ....

在头文件的顶部:

/* Project : XYZ (Please somebody shoot me!)
 *
 * File : $Id: defs.h,v 1.1 $
 *
 * Purpose : Create havoc rather than peace among many nations
 *
 * History : Back-ported changes that were not in CVS.  Please somebody,
 *  shoot us and put us all out of our misery.
 */

“XYZ项目”(已改名)是一个长达七年的折磨。最后这句话是由一个从头到尾都参与其中的坚定的灵魂写的。