how do i program a guessing game?

This is a discussion on how do i program a guessing game? within the Windows Programming forums, part of the Platform Specific Boards category; Hye guys am new to programming. i rely need to noe how do i code the following requirements:
Each digit ...

- Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
- A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
- The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.