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


当前回答

Control + A,重写

这是在以前的项目中作为签入注释添加到源代码控制中的注释。

其他回答

在makefile中找到这个

# ===== Never edit below this line. Ever. Or I'll kick your ass. ====
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++怎么样

'this next if statement - just how it is. don't try to understand it because you won't. :)

这就是工作保障。

有一次我发现:

// I wish (boss name) could do this by him self.

我发现了这个:

I'm not sure what I did