programs on file structures written in C++