Compiler Error C2552 non-aggregates cannot be initialized with initializer list

Compiler Error C2552 non-aggregates cannot be initialized with initializer list. This error beacuse of the following.....

The specified identifier was incorrectly initialized.

An initializer list is needed to initialize the following types:

1) An array
2) A class, structure, or union that does not have constructors, private or protected members, base classes, or virtual functions
These types are known as “aggregates.”

sample code....

 

Code
posted @ 2009-05-04 10:17  飞扬跋扈  阅读(1621)  评论(0编辑  收藏  举报