LikeWhere does it occur
What was the program's output
How about reading the annoucements, especially this one
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
>>I keep getting segmentation faults when running this program. Could anyone help me with this?
Yes -- get a clean compile before attempting to run it. your compiler should not create an executable file if it encounters syntax errors, but some older compilers will.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Some of your problems:
line 62 and line 86:
Two different functions with same name.
line 67 "counter" and "number" are two variables that the function
doesn't see from inside main fuction and the loop do-while.
line 61 and 85 two end main?.
line 71: At this point your curly brackets are off.
line 75 where's the start do in this do-while loop?
Aia
Nearly a Posting Maven
2,392 posts since Dec 2006
Reputation Points: 2,224
Solved Threads: 218