i have a problem in a program i am making. In my program i need to call a function again and again until the string entered in it is not correct. Initially i was using gets() but it wasn't accepting the string.
i cahnged it to scanf(), so it is accepting first string but not the other strings or integer i am trying to enter after it. My program was correct before i introduced this facility to make it user friendly,its now showing segmentation error:sad:
can you help me please:confused:
rati 0 Junior Poster in Training
andor 25 Posting Whiz in Training
rati 0 Junior Poster in Training
andor 25 Posting Whiz in Training
andor 25 Posting Whiz in Training
Salem commented: Salem agrees +2
rati 0 Junior Poster in Training
Grunt 19 Junior Poster
rati 0 Junior Poster in Training
andor 25 Posting Whiz in Training
rati 0 Junior Poster in Training
andor 25 Posting Whiz in Training
rati 0 Junior Poster in Training
andor 25 Posting Whiz in Training
rati 0 Junior Poster in Training
andor 25 Posting Whiz in Training
rati 0 Junior Poster in Training
rati 0 Junior Poster in Training
rati 0 Junior Poster in Training
andor 25 Posting Whiz in Training
rati 0 Junior Poster in Training
rati 0 Junior Poster in Training
Salem 5,199 Posting Sage
rati 0 Junior Poster in Training
rati 0 Junior Poster in Training
andor 25 Posting Whiz in Training
rati 0 Junior Poster in Training
rati 0 Junior Poster in Training
rati 0 Junior Poster in Training
andor 25 Posting Whiz in Training
rati 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.