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


当前回答

// barcore.cpp - MFC

//.....
HBRUSH CControlBar::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
    LRESULT lResult;
    if (pWnd->SendChildNotifyLastMsg(&lResult))
        return (HBRUSH)lResult;     // eat it

//......

// Eat it - just like eat this.

其他回答

/* This is O(scary), but seems quick enough in practice. */ 

后面是四个嵌套的for循环

在makefile中找到这个

# ===== Never edit below this line. Ever. Or I'll kick your ass. ====
(A bunch of code that's really weird looking)  //Kludge.
Get This hack!

在一行汇编代码中,在几页未注释的代码之后。

if(count<0) count=0;    //don't get me wrong but this has to be done :p