Thanks for the replies, they were useful. I need to dig out my beginner C++ books, they are around somewhere!