Friday, January 20, 2012
Im so confused I feel like quitting...?
To find out what's not working, you have to go step by step. And for that, you absolutely need to start with a program that works. Your C compiler software certainly includes at the beginning of the doentation -mine does- a program probably called hello.c that prints a message to the screen "Hello world". The file is there, all you have to do is compile and run it. That's your starting point. Get this one up and running. After that, change the program name and start adding your own statements to the very same program. Cause the result of your statements to print on screen in exactly the same way the message "hello world" displays. Don't write pages of code. Strictly a few statements at a time, compile and run. If it doesn't work, look no further. The error is within those last few statements you added. And so on.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment