Hey guys, I am trying to code this program. It compiles correctly, but unfortunately somewhere along the way there is a memory issue. When I debug it, it tells me the error is: "Unhandled exception at 0x00081dbc in Assignment6.exe: 0xC0000005: Access violation writing location 0x334d2640." Which occurs in Market.cpp
I've been trying to get this to work for a few days now, its really frustrating!! Please help me!! = (
Check on line 12 of market.cpp, you have an array of pointers to type Stocks, but they are not initialized to anything (all wild pointers). You need to allocate memory for those pointers using new (inside your loop) before you can start changing the data for them.
I hope that helps, and you can make progress from there.