Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Straighterline C++
#1
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
Reply
#2
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.
Reply
#3
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
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  StraighterLine acquires Childcare Education Institute bjcheung77 2 1,580 05-16-2023, 11:05 AM
Last Post: glammie83
  Excelsior University & StraighterLine success story! bjcheung77 0 1,459 03-07-2023, 07:24 PM
Last Post: bjcheung77
  Science plus lab alterantives for Study.com/StraighterLine echo64 6 2,065 06-18-2022, 01:27 PM
Last Post: bjcheung77
  StraighterLine - Success Stories bjcheung77 0 1,516 11-08-2021, 10:03 PM
Last Post: bjcheung77
  Straighterline Pharmacology 103 tyson14136 16 6,052 07-09-2021, 10:57 AM
Last Post: eLearner
  Is the Straighterline Biology Lab Kit Reusalble or Consumable? JaronB34 1 2,070 10-25-2020, 07:08 PM
Last Post: Lydclrk
Exclamation BS/BA Degree plan using ACE/Straighterline Credits breezy55 1 2,142 11-13-2019, 02:13 PM
Last Post: dfrecore
Question Straighterline Business Statistics Tips Bunii 3 3,915 07-12-2019, 04:40 PM
Last Post: Bunii
  Straighterline Spanish 1 Amyfaith 5 3,660 03-05-2019, 11:43 AM
Last Post: bjcheung77
  Straighterline Review Goblue34 13 9,144 05-05-2018, 11:11 AM
Last Post: vpassenheim

Forum Jump:


Users browsing this thread: 1 Guest(s)