Re: [Dev-C++] Invalid initializer for an array
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Matthew H. <mhi...@ko...> - 2000-10-10 21:20:54
|
> Try this int distrubution[]={0,0,0,0,0}
>
> It means an array of ints ,with proper size (5), initialized with all
> elements to 0.
You could also replace the {0,0,0,0,0} with {0} (if I recall properly, this
works with all ANSI C/C++ compilers).
-----
Matthew Hickson
|