943,525 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 27854
  • C++ RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Jan 20th, 2005
0

Re: unix/C++ segmentation fault

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
Team Colleague
Reputation Points: 121
Solved Threads: 57
Posting Virtuoso
kc0arf is offline Offline
1,629 posts
since Mar 2004
Jan 20th, 2005
0

Re: unix/C++ segmentation fault

Quote ...
int num_calls [MAX_CALLS];
You have an array of size 41(MAX_CALLS) BUT
Quote ...
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.
Reputation Points: 16
Solved Threads: 6
Posting Pro in Training
1o0oBhP is offline Offline
445 posts
since Dec 2004

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: Display formatted local date and time
Next Thread in C++ Forum Timeline: C/C++ e-book plzz





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


Follow us on Twitter


© 2011 DaniWeb® LLC