unix/C++ segmentation fault

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2004
Posts: 1,620
Reputation: kc0arf is a jewel in the rough kc0arf is a jewel in the rough kc0arf is a jewel in the rough 
Solved Threads: 51
Team Colleague
kc0arf kc0arf is offline Offline
Posting Virtuoso

Re: unix/C++ segmentation fault

 
0
  #11
Jan 20th, 2005
Hello,

Alex is correct, although if pico is properly defined in the Unix path, you need to just type in "pico filename.c" or "pico filename.cpp" and away you go.

Pico is actually part of software that came from the UNiversity of Washington, and is the chosen editor for the PINE program. Pine is a smooth text based email reader program.

If pico isn't available, look at emacs. There is another one out there called joe. The default UNIX/Linux editor is vi, and well, vi is a challenge in her own right.

Christian
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 445
Reputation: 1o0oBhP is an unknown quantity at this point 
Solved Threads: 6
1o0oBhP's Avatar
1o0oBhP 1o0oBhP is offline Offline
Posting Pro in Training

Re: unix/C++ segmentation fault

 
0
  #12
Jan 20th, 2005
int num_calls [MAX_CALLS];
You have an array of size 41(MAX_CALLS) BUT
for(int i=1; i<=<b>MAX_NUM</b>; i++){
num_calls[i] = 0;
Is going past the 'end of the array', hence the seg fault.
http://sales.carina-e.com

no www
no nonsense

coming soon to a pc near you! :cool:
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



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC