Here is what I have right now. I created a loop that loops through 6 times. Each time it loops, it spits out a different answer at the end, then when it gets back to the top it starts at 0 and {0,0,0}.
........double U[6]={0,0,0,0,0,0};
double g[6][3]={{0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}};
for (int s=0; s<6; s++)
{.....................
}
What I'm trying to do is to make this loop run through 3000 times instead of 6. One problem I am having with this is that I don't want to go and write in 3000 0's and 3000 {0,0,0}'s.
Any help on an efficient method of doing this would be great.