If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Programming Debugging help....

I have been on this program pretty much the whole day started it from scratch now i am stuck getting
"Unhandled exception at 0x7531812f in testingCodes.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x00211370.."

but i can't figure it out so before i change some of my codes I will hope someone could point out the problem here.
Thanks in advance...

//This program open three files each has 1000 names that i utilize to create email as many unique email addresses i could get
//2000 first names and 1000 last names i have come to the point where i could generate the email addresses but I still have lef//t to let the user enter how many millions of email wants to generate based on that generate that amount

Re: Programming Debugging help....

Originally Posted by soccerstr

This is my homework assignment no intention what so ever to spam anyone...

Keep in mind most of us that have been here a while have been through school and seen lots of homework, both assigned to us and posted to others here. Also keep in mind, most of us make our living because we're relatively intelligent. With those things in mind, please go away.

Re: Programming Debugging help....

really u guys don't believe me? I am not insulting anybodies intelligence here, I am honestly seeking for help. I could scan my homework and post it here if that is necessary.

This is a forum for legitimate programming and takes a really dim view of hacking and spamming. Go ahead and scan it and it if you like, but if that's really homework, your teacher has some serious problems with ethics and judgement.

Re: Programming Debugging help....

I don't know what his intention is but I think he is trying see we could actually implement something with that magnitude and the Algorithms to make it fast. My previous homework last week was generating unique ip address. I was able to generate as many ip address as i can but wasn't able make it unique getting rid of the duplication and fast so didn't submit that. That's why i am seeking for help now, I am trying make it through this class hopefully.

I am really frustrated because I have other four programs I have to write from another class and not enough time in the day to do all of them. I don't mind sitting down here and figuring it out if i could get it done on time.

Re: Programming Debugging help....

Originally Posted by soccerstr

I don't know what his intention is but I think he is trying see we could actually implement something with that magnitude and the Algorithms to make it fast. My previous homework last week was generating unique ip address. I was able to generate as many ip address as i can but wasn't able make it unique getting rid of the duplication and fast so didn't submit that.

And did this teacher show his/her solution? And again, why ip addresses? Why not an assignment to generate n sets of numbers, where each set is unique?

This generation of ip addresses, emails with hotmail, gmail, and yahoo addresses, etc. sounds like your teacher is into spamming, and seeing if you can spam with the best of them. There are much better ways to teach algorithms than to ask you to write spamming programs. What's next, teach you OS internals by writing a virus?