หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'function' : static functions with block scope are illegal
Remarks
A local function is declared static. Static functions must have global scope.
Example
The following example generates C2267:
// C2267.cpp
static int func2(); // OK
int main() {
static int func1(); // C2267
}