Holey moley Jans, when did you get around to be a programming guru on the side??? Very impressed.
And thanks for that detailed explanation Zippy. Just two quick questions for you:
1: Just so that I can be sure to use the file types you displayed accurately, what is the difference between the code in a .hpp and .cpp file?
2: Can you please look at my first real C++ program, and advise if there's anything I could have done differently to make it more efficient? I'm proud of actually using a for loop to write and read from an array, but I think I'm hacking it a little bit (especially my use of 'break;' to get it to stop at one point).
apologies I misread your first question.
The hpp file is the class interface and cpp is the class implementation