नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
left of '->member' must point to class/struct/union/generic type
Remarks
The operand to the left of -> is not a pointer to a class, structure, or union.
Example
The following example generates C2227:
// C2227.cpp
int *pInt;
struct S {
public:
int member;
} s, *pS = &s;
int main() {
pInt->member = 0; // C2227 pInt points to an int
pS->member = 0; // OK
}