3 ms·
> If you wrote your own struct in C++, you have to define constructor to initialize all members with some default values. No you don't. You are free to define
by millstone 12y ago
> If you wrote your own struct in C++, you have to define constructor to initialize all members with some default values.
No you don't. You are free to define a constructor that leaves some fields as garbage; in fact that's the default behavior.