Creating a 2-dimensional array

Hi, I would like to create a 2-dimensional array. Searched the web and found some on creating using certain functions and equations (like y*x) but mine is a bit more complicated. The equation itself is dependent on the other values in the equation (think x^x^x^x^x...)

I am working with this equation, and want to express i and j as rows and columns but my xcode doesn't seem to print out anything. Setting 100rows and 100 columns.
P[i+1][j+1] = P[i][j+1] - ((P[i][j+2]-P[i][j])/0.04)*0.01

Also I set the initial conditions, like, P[0][j] = 1 when 0<j<25, and P[0][j] = 3 when 25<j<100.

So can anybody help? I've tried with some codes I made but xcode does not print.

And yes I am only a beginner in C++ as I juggle schoolwork to learn C++ (myself without any coaching) since about 7 weeks.

Help would be appreciated!
Topic archived. No new replies allowed.