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


当前回答

在VB中使用分号。网

TextBox2.Visible = True';
For Each row In data.Tables(0).Rows
    If row("Customers.Id").ToString <> customerId Then
        customerId = row("Customers.ID").ToString';
        name = "Customer Name: " & row("Name").ToString & CrLf';
        address = "Address: " & row("Address").ToString & CrLf & CrLf';
        TextBox2.Text += name & address ';s
    End If';
Next';

其他回答

// sometimes I believe compiler ignores all my comments
// If this comment is removed the program will blow up 
//Woulda
if(x) {}
//Shoulda
else if(y) {}
//Coulda
else {}
/**---------START-----------**/

  //  IMPLEMENTATION GOES HERE

/**---------END-----------**/

但没有代码;)

// TODO: Implement this function!