Hi there.
The problem that I'm experiencing here is quite a specific one, and after a few searches, I concluded that I ought to just ask.
I have calculated earlier in my program various values in various arrays, angle[], t[], y[], x[] etc and now I want to output these values in table form to a text file. Because these arrays contain different values I have introduced a while loop which I thought would write one row of the table "num" times, changing the value of x[1] to x[2] etc every time it loops.
This isn't happening however, and the only thing being written to file is the table header shown on lines 5-7 below. It seems as if the while loop and everything inside it is being ignored completely!
Am I missing something really obvious here?
What is bugging me even more is the fact that I used the same while loop method to cout the same table to be viewed inside my program by the user and this works fine. (This code is shown further down the page).
This is a problem that is really holding back the progress with my project and any help would be greatly appreciated!
Many thanks, Robin.
Galik and Takiro, thankyou very much!
The problem is solved.
I really appreciate the help you've given. I could have been here for a while scratching my head over that :¬)
Robin