I'm going to start over with this program and start with writing out the pseudo code. I'll get back to you guys with my new results tomorrow (well I guess that would be later today).
Type: Posts; User: pmacdonald
I'm going to start over with this program and start with writing out the pseudo code. I'll get back to you guys with my new results tomorrow (well I guess that would be later today).
What I don't understand is why in this book do they not give you all the correct information before asking you a question where you need said information. Going off the examples in the book the...
I did look it up...and I know what it does. But for some reason it wasn't working in the program. Why don't you tell me why?
EDIT:
Alright so I was playing around with the program more and decided to start eliminating lines until the program worked. When I took off the following line:
srand(time());
the program...
I actually appreciate you guys not giving me the direct answer.
But I've run into another error and I just don't see what I'm doing wrong. I tried to simplify the program without using isdigit...
msh - mmh, the book hasn't gone over that yet so there should be a way to make this program without incorporating it. I tried to add it but got the following errors:
warning: return type defaults...
Please be more specific...around which if? I added them around the isdigit function and I still got the errors. I'm also not sure that I can compare the character to the integer so how would I do...
A few more questions arose. How do I correctly call char cResponse to see if it is equal to the integer iAnswer?
This code turned up many error in; srand, time, and rand.
Any ideas?
...
Thanks for the quick replies and clarifications. I had a hunch that I was using the isdigit function wrong.
I'm currently reading C Programming for the Absolute Beginner and am stuck on one of the chapter questions. This is a really simple question but I am stuck.
Problem:
Build a number guessing game...