Why is :: (scope) used with empty left-hand operand? [duplicate]
问题 This question already has answers here : What is the meaning of prepended double colon “::”? (9 answers) Closed 12 months ago . I've seen this a few times now, and I've been scratching my head wondering why... As an example: (http://www.codeguru.com/forum/showthread.php?t=377394) void LeftClick ( ) { INPUT Input={0}; // left down Input.type = INPUT_MOUSE; Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN; ::SendInput(1,&Input,sizeof(INPUT)); // left up ::ZeroMemory(&Input,sizeof(INPUT)); Input.type =