944,001 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1264
  • C++ RSS
Jun 26th, 2007
0

program does not seems to run to end.

Expand Post »
can someone please tell me what i am doing wrong here? My program does not print any output after the attempted bucket sort. It only prints before. It is almost as if it does not run to its end.
Attached Files
File Type: cpp CountDigits.cpp (1.9 KB, 17 views)
Similar Threads
Reputation Points: 160
Solved Threads: 3
Posting Whiz in Training
quintoncoert is offline Offline
266 posts
since May 2007
Jun 26th, 2007
0

Re: program does not seems to run to end.

>It is almost as if it does not run to its end.
That's exactly what's happening. Run it through your debugger and you'll probably die with an access violation.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Jun 26th, 2007
0

Re: program does not seems to run to end.

Yes it does. At a simple assignment it gives an access violation( Segmentation fault ). Can you tell me what it means?

By the way. Are you not going to join the chess tournament? You once pointed out an important opening principle so I asume that you have some skill?
Reputation Points: 160
Solved Threads: 3
Posting Whiz in Training
quintoncoert is offline Offline
266 posts
since May 2007
Jun 26th, 2007
0

Re: program does not seems to run to end.

>Can you tell me what it means?
It means you accessed memory outside of where you're supposed to. Check your indexes and make sure that they're always valid. I'd wager that they're not.

>Are you not going to join the chess tournament?
What chess tournament?
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Jun 26th, 2007
0

Re: program does not seems to run to end.

>Can you tell me what it means?
Do not worry about that. I just solved it. An array was not initialised. Re-assigning some of its values to another array caused errors. I do not really understand why that happens but for now it is fine.

>What chess tournament?
the one being arranged as we speak/write. Go to Geeks' Lounge. There are two chess threads. One is just ...chess... and the other one says ....chess tournament.... It is the second one. Chess Tournament.
Reputation Points: 160
Solved Threads: 3
Posting Whiz in Training
quintoncoert is offline Offline
266 posts
since May 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Calling an SDI app from a Dialog
Next Thread in C++ Forum Timeline: Trouble with this function..





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC