Posts: 259
Threads: 13
Likes Received: 2 in 2 posts
Likes Given: 0
Joined: Oct 2014
10-21-2015, 11:38 AM
(This post was last modified: 10-21-2015, 01:27 PM by gingerbeefE.)
Currently taking this course and I am having issues with the Assignment 7 Marketing Software.
I have it all coded but when I enter all the information at the cmd it gives me a
"terminate called after throwing an instance of 'std::bad_alloc'
what(): stdbad_alloc"
any experienced programmers want to take a look at my code?
CCAF Air & Space Operations Technology- COMPLETE
TESC AS - General Managment-COMPLETE
TESC BSBA Computer Information Systems-COMPLETE
WGU MBA IT -COMPLETE
•
Posts: 113
Threads: 2
Likes Received: 0 in 0 posts
Likes Given: 0
Joined: Jan 2015
10-21-2015, 01:16 PM
(This post was last modified: 10-21-2015, 01:21 PM by Outis.)
gingerbeefE Wrote:Currently taking this course and I am having issues with the Assignment 7 Marketing Software.
I have it all coded but when I enter all the information at the cmd it gives me a
"terminate called after throwing an instance of 'std::bad_alloc'
what(): stdbad_alloc"
Anyone have their code so I can figure out what I did wrong or any experienced programmers want to take a look at my code?
Hi gingerbeefE,
It's difficult to say without seeing all of the code. I would be careful posting all of it in a public place, as it may violate some SL policy in regards to work/test material. However, the error message does give a big hint: you are out of memory. Follow your code line by line and see if you are allocating memory space correctly, or if you are attempting to place data in a structure with limited space. If you can't do it by visually examining the code (I have no idea how many lines it is), you might consider using try, throw, catch expressions around each significant portion of your code to narrow down the source of the issue.
•
Posts: 1,922
Threads: 49
Likes Received: 527 in 345 posts
Likes Given: 318
Joined: Jun 2012
look at the bottom answer here
Eclipse C++ error : terminate called after throwing an instance of 'std::bad_alloc' - Stack Overflow
if that doesn't help then look through some of these
https://www.google.com/search?q=%22termi...0&ie=UTF-8
you can almost always paste your error message into google and do a search and get some help
that's what I did there
•