help creating a loop to calculate formula

Hi, I am trying to create a code and cannot get the following part to work :


for (int n = 0; n = timesteps; n++)
{
n = n + 0.1 ;

cout<< "timesteps"<< n << endl ; //print time step value =0.1

for (int j = 0; j < nodesinx; j++)
{
T[j][n+1] = T[j][n] + 0.16 * (T[j][n] - 1[n] - 2[T[j][n] + T[j] + 1[n] ; //equation
n= n + 0.1 ;

cout<< "temperature" << T[j][n+1] << endl;
T[j][n+1] = 0.0 ;
}

}

I would be grateful if anyone would be able to help me with this, thanks in advance.
Unbalanced brackets on line 9 : you have opening '(' but no closing one.
Topic archived. No new replies allowed.