หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
illegal pure syntax, must be '= 0'
Remarks
A pure virtual function is declared with incorrect syntax.
Example
The following example generates C2258:
// C2258.cpp
// compile with: /c
class A {
public:
void virtual func1() = 1; // C2258
void virtual func2() = 0; // OK
};