Option Explicit
Sub findvalues()
Dim i As Long
Dim rng As Range
With ThisWorkbook.Worksheets("Sheet1") 'Change if needed
Set rng = .Range("A2:A130") 'set rng to includes values from column A, rows 2:130
For i = 2 To 130 'Loop from row 2 to 130
'Check if the values in column C includes in the rng
If Application.WorksheetFunction.CountIf(rng, .Range("C" & i).Value) > 0 Then
.Range("D" & i).Value = "TRUE"
Else
.Range("D" & i).Value = "FALSE"
End If
Next i
End With
End Sub
本文给出了// Pre-increment (or pre-decrement)
#include <cstdio>
int main()
{
int a = 10;
++a = 20; // works
//printf("a = %d", ((++a)++));
getchar();
return 0;
}
的工作原理,但是当我在ideone上运行时,此代码给出了错误。