Oh, so that's what the problem is. I should store the return value of isFoundDb into a variable and then check the variable rather than running the function each time and determining its return....
Type: Posts; User: JoshLalonde
Oh, so that's what the problem is. I should store the return value of isFoundDb into a variable and then check the variable rather than running the function each time and determining its return....
Sorry for the double post, but it's for emphasis. I determined that there's a problem with the if/else in isFoundDb. I created a test file removing the embedded loops and it repeats infinitely. The...
Thank you so very much for your help :) I knew there was something wrong with the loop, but I couldn't quite figure that out. And oh, lol. Thanks again, guys! :D I haven't checked it yet, but I'm...
I heard you're supposed to flush the buffer before running getch();. Also, the main.c is below the isFoundDb.c. I run and if-else sort of thing to see what the return value of isFoundDb() is. I think...
Oh, wow! Thanks.
I tried compiling it with the i=0 corrected to i==0, but then it still doesn't work. :( Thanks though.
Oh, didn't catch that XD
Couldn't indent it since tab doesn't work, but I tried making it more blocky to help.
Thanks :)
And regarding goto, meh. It has its benefits, depends. Like, a quick way to exit a program in the...
I could be mistaken but perhaps the & symbol needs some space. Otherwise it'll consider it as an address... Might be wrong.
So try:
x==0 && y == 0, etc. instead of x==0&&y==0
Oh, and since...
For school (voluntary, not a required project), I'm creating a bonuscalc for the teachers to use. Everything is coming along smoothly, except for a portion of code that handles whether or not a file...