Thanks! Now it works fine.
Florian
___
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus
> {
> 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
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