You are trying to do the initialization-seperate-from-declaration in the class declaration which is not allowed. You probably should be doing something like this:
[source lang="csharp"]World[] W = new World[10];World[] O = new World[2] { new World(-1.6, 1.6, -1.0, 1.0, function.julia, 500), new World(-0.5, 1.5, 01.25, 1.25, function.mandelbrot, 500) };[/source]
Code not tested.
Show differencesHistory of post edits
#1aavci
Posted 12 December 2012 - 03:38 AM
You are trying to do the initialization in the class declaration which is not allowed. You probably should be doing something like this:
[source lang="csharp"]World[] W = new World[10];World[] O = new World[2] { new World(-1.6, 1.6, -1.0, 1.0, function.julia, 500), new World(-0.5, 1.5, 01.25, 1.25, function.mandelbrot, 500) };[/source]
Code not tested.
[source lang="csharp"]World[] W = new World[10];World[] O = new World[2] { new World(-1.6, 1.6, -1.0, 1.0, function.julia, 500), new World(-0.5, 1.5, 01.25, 1.25, function.mandelbrot, 500) };[/source]
Code not tested.