नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'.' : left operand points to 'class-key', use '->'
Remarks
The operand to the left of the member-selection operation (.) is a pointer instead of a class, structure, or union.
Example
The following example generates C2231:
// C2231.c
struct S {
int member;
} s, *ps = &s;
int main() {
ps.member = 0; // C2231
// OK
ps->member = 0; // crash
s.member = 0;
}