Re: ISO C++ forbids initialization in array new

2008-05-15 Thread florian.hudel...@googlemail.com
Thanks! Now it works fine. Florian ___ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus

Re: ISO C++ forbids initialization in array new

2008-05-14 Thread Dyreatnews
> { > array *test; > test=new array[5](123); > } > *** > > Compiling this code gives following error message: > > $ g++ test.cpp > test.cpp: In function âint main()â: > test.cpp:22: error: ISO C++ forbids initialization in ar

ISO C++ forbids initialization in array new

2008-05-13 Thread Florian . Hudelist
gives following error message: $ g++ test.cpp test.cpp: In function âint main()â: test.cpp:22: error: ISO C++ forbids initialization in array new How do I have to write the code to get the same result? I don't want to add an extra function to initialise my objects. Thanks, Fl