หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
#ifdef expected an identifier#ifndef expected an identifier
Remarks
The conditional compilation directive (#ifdef or #ifndef) has no identifier to evaluate. To resolve the error, specify an identifier.
Example
The following example generates C1016:
// C1016.cpp
#ifdef // C1016
#define FC1016
#endif
int main() {}
Possible resolution:
// C1016b.cpp
#ifdef X
#define FC1016
#endif
int main() {}