Using array initialisation list for my own class

Hi geeks, i'm currently working on a research project and i've been given some specifications, one of which has been giving me a very hard time solving so i just hope you guys here can help me out.

Is there a way i can access/use the array initialisation list i.e

{value,value,value}; .

For my own class? Like this

myclass foo={value,value,value};

i hope you guys get my question, and please its important to my life that i get a solution to this...just helpta brother in need guys. Thanks all.
Yes. Go look up std::initializer_list for the specifics.
Thanks guys! This place rocks! Though the solutions aren't what i realy needed. Thanks again
Last edited on
Topic archived. No new replies allowed.