หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'class' : a class-constructor cannot have a return type
Remarks
Class constructors cannot have return types.
Example
The following example generates C3264:
// C3264_2.cpp
// compile with: /clr
ref class X {
public:
static int X() { // C3264
}
/* use the code below to resolve the error
static X() {
}
*/
};
int main() {
}