C++: constructor initializer for arrays

Edit: see Barry’s answer for something more recent, there was no way when I answered but nowadays you are rarely limited to C++98.


There is no way. You need a default constructor for array members and it will be called, afterwards, you can do any initialization you want in the constructor.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)