This is my first time using vectors. I'm trying to print some data that is stored in a structure vector but whenever the code gets to printing the data which is in double loop it crashes. I have located the error but i am ensure how to resolve it. heres the pastebin link:

Recommended Answers

All 2 Replies

Since you can post code here, post the relevant code and write what line(s) it fails on.

Also, a tried and true method to debug is to either single step in a nice IDE like Visual Studio so you can watch variables and see why a call or function blows up or go old school and print out the variables prior to the line that crashes.

Also, most compilers I've seen will give a description of the error . Supplying that with the code will help quite a bit.

Be a part of the DaniWeb community

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