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


当前回答

return 1; # returns 1

其他回答

// Caveat implementor

前段时间我看到:

raise InvalidChild() # e.g. no legs

这很奇怪,因为“inwalida”在波兰语中是残疾人的意思。愚蠢的我:)

//迭代一次 美元我+ +;

不幸的是,它是我的,在我的“必须评论一切”阶段。

options.BatchSize = 300; //Madness? THIS IS SPARTA!
int MyFunction()
{
    // There once was a man named Dave
    int Result = 0;

    // Whose code just wouldn't behave
    MyObject *Ptr = new MyObject();

    // He left to go to a meetin'
    Result = Ptr->DoSomething();

    // And left his memory a leakin'
    return Result;
}

c++怎么样