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


当前回答

// I know the line below is wrong, but it came that way from our IP vendor, and 
// the driver won't work if you "fix" it. I've had to revert this change 4 times
// now. Leave it alone, or I will hunt you down and hurt you
if (r = 0) {
    /* bunch of code here */
}
else
{
   /* even more code here */
}

其他回答

摘自UNIX版本6源代码,大约1975年:

/* You are not expected to understand this. */

//这将为我们每个用户节省0.5秒,并取悦机器精神。

在很长的程序之前:)

   // Some wanker in ISO got rid of ifstream(int), ofstream(int), and
   // fstream(int).  Twit.
else
{
    //error situation
}

这在我自己的代码中出现过几次。显然我摸了不止一次。

// TODO: Fix this.  Fix what?