Re: Too many initializers.


[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]

Posted by William D McQuain on November 01, 2001 at 19:02:27:

In Reply to: Too many initializers. posted by Q on November 01, 2001 at 18:23:29:

: In finishing up a function, I get a compile 'error C2078: too many initializers.' Does anyone know what this means I'm doing wrong?

Could be you're using initalizer list syntax to intialize an array:

int A[5] = {42, 17, -9, 67, 3};

but you're using too many items in the list:

int A[3] = {42, 17, -9, 67, 3};

If it's not that then you're doing something really strange that the compiler's interpreting as being this?


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]