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


当前回答

// this is really complicated

没有其他评论了

其他回答

/* Please work */
// set break point here - you'll never reach it
/* My lawyer told me not to reveal */
if(count<0) count=0;    //don't get me wrong but this has to be done :p

在一个艺术资产导出工具中,我偶然发现了一个从数字(阿拉伯)到罗马数字的完整转换器。它是这样的:

/*
//You can tell I was bored
//I wanted to do this for a long time
char* ConvertToRoman(int number, int base)
{
... whole code here
}
*/

编写这段代码的人的团队已经处理了很长时间,我猜这影响了他们的理智。