program does not seems to run to end.

Reply

Join Date: May 2007
Posts: 266
Reputation: quintoncoert is an unknown quantity at this point 
Solved Threads: 3
quintoncoert quintoncoert is offline Offline
Posting Whiz in Training

program does not seems to run to end.

 
0
  #1
Jun 26th, 2007
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, 7 views)
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,541
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 704
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: program does not seems to run to end.

 
0
  #2
Jun 26th, 2007
>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.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 266
Reputation: quintoncoert is an unknown quantity at this point 
Solved Threads: 3
quintoncoert quintoncoert is offline Offline
Posting Whiz in Training

Re: program does not seems to run to end.

 
0
  #3
Jun 26th, 2007
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?
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,541
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 704
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: program does not seems to run to end.

 
0
  #4
Jun 26th, 2007
>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?
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 266
Reputation: quintoncoert is an unknown quantity at this point 
Solved Threads: 3
quintoncoert quintoncoert is offline Offline
Posting Whiz in Training

Re: program does not seems to run to end.

 
0
  #5
Jun 26th, 2007
>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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC