array-like class

As we know in C/C++ we could initialize an array in this way:

float a[] = {1,2,3,4,5};

so I am wondering how to define a class (for example, class Array) so that I can initialize an object of the Array type in the similar way:

Array a = {1, 2, 3,4,5};

thanks.

thanks, Athar. That solves the problem!
Topic archived. No new replies allowed.