Provide a default constructor, e.g.,
struct Thing {
Thing() : value(123), title('a') {}
int value;
char title;
};
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: laserlight Search: Search took 0.82 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |