Well, I have just written all of this code, and then made lots of edits, compiled and when I run it, I get STATUS_ACCESS_VIOLATION. And I can't work out where the error lies. It is a very basic Database program BTW.

Here is the code:
http://pastebin.com/jLktEL3C

And here is the file database/fruit.tbl (You must create this file first)
http://pastebin.com/NzVxSyWj

Thanks in advance.

vector<string> db(string input)

That function doesn't return anything.

commented: Thanks! +1

OH MY GOD, SOMETIMES I SWEAR I AM BLIND!

Thanks a lot mate. I probably would have found that out, I just didn't return the vector created on line 419.

It was like 23:00 and I had been going for a few hours. I think If I had just left it until morning, I would have found it. Hehe, nevermind, these things happen.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.