I have a class Y which contains an array of size 100 X objects.
class Y{
unsigned int x_array[100];
};
I need to initialise this array so that all the elements are zero. Is it this possible to do in Visual Studio and if not what can I do? If I do:
unsigned int x_array[100] = {0};
I get a compile error saying data member initialisation is not allowed.
(Intel C++ Compiler v13)