Image

Imageurufu wrote in Imagecpp

Hello all.
I was wondering if anyone could help me with a little problem I have.
I'm a CS student at a University in London and I have to write a database management system which uses the command line for a front-end and stores its database to it's own personal flat-file save structure.
I'm only a novice to Cpp, and I've come a cropper in my function to print the records in my program on screen.

The data in the dbms is loaded into the program as a vector of structures, which is then passed to each appropriate function in my program which does the tasks we were asked for our programs to do (or at least some of them, as I've not finished yet).

(My program located here - 9k)

I'm unable to see what's wrong with line 312 in my program (right at the bottom), where I'm trying to get the structure in my vector in a position where I can print straight to screen. For the life of me I can't work out how to get the vector passed to printRecords() out onto the screen.
I'm sure the answer is probably obvious, but it's going right over my head.

The program we have to write has to be to ANSI standard, and cannot be dependent on any particular platform (the Uni machines all have Windows XP & Visual C++, and the Lecturer uses Suse Linux and a GCC compiler).
We're meant to be programming for this subject in C, but from the start they've been teaching us C++ stuff - which leaves the majority of the students on the course confused as to which language we're being taught. Though apparently it doesn't matter which of the two we use to write this program.

Anyone got any clues as to my problem?
As I said, I'm a novice to C, so I've probably done something blindingly stupid. :P