- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
8 Posted Topics
Lines 8-10: Something is wrong before and after "mainmenu();". Go figure. :p [CODE] :: scanf("%c",&invite); if(invite=='c') mainmenu(); else { :: [/CODE]
Since you are in this forums, you are obviously studying C. And studying C requires that you should have a compiler to crunch your code. Why don't you run the code and see the result/output for yourself instead of asking? As for the last question, saying [CODE] p = list; …
A quick check on your code shows extra '}' between lines 196-197. Hope that fixes it.
Not sure what you wanted to do at this point, but you can't do this in C (it can compile but I'll give you segmentation faults just as you reported): [CODE] char *ptr[count+1]; [/CODE] You must decide explicitly what size you wanted ptr to have. If you don't know for …
There is indeed a problem with your parseItem() function. Check the difference: (I minimized the edits so as to remain recognizable to you) [CODE] char* parseItem (char* string) { int i, newCount = 0; /* FYI: Unrelated to your question: you need to free this up somewhere too */ char* …
Based on the replies above, I think they already told you whether the cat can escape or not. Uhmmm, is that the actual code you just posted? I'm pretty sure that will not compile.
I dunno about you but I tried to run your code (with minor modifications on your "include" part) and it seems to be working fine. I tried it on cygwin though (I'm too lazy to boot my linux box). Here's the output of your code for your reference: [CODE] $ …
Please see the rules. No one's going to do your homework for you.
The End.
yan0