Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
'->' : left operand has 'class-key' type, use '.'
Remarks
The operand to the left of the -> operator is not a pointer. Use the period (.) operator for a class, structure, or union.
Example
The following example generates C2232:
// C2232.c
struct X {
int member;
} x, *px;
int main() {
x->member = 0; // C2232, x is not a pointer
px->member = 0;
x.member = 0;
}