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

你可能感兴趣的:(compiler)