If you are working on unix at school then minGW (for windows) might be good as it uses gcc, the GNU compiler, which (at least originally) was a clone of cc, the unix compiler, and may very well be...
Type: Posts; User: MK27
If you are working on unix at school then minGW (for windows) might be good as it uses gcc, the GNU compiler, which (at least originally) was a clone of cc, the unix compiler, and may very well be...
That is where the '\n' left in stdin will come out, to unfortunate effect:
while (lives>0) // start of guesses while
{
printf("\n Next Guess: ");
scanf("%c",&guess);
LOL well if you rearrange the loop fortuitously enough...then you use it exactly right because you wrote it...you could end up with a functional but very delicate program which is a product of...
The reason you do not see the character right away has nothing to do with the logic of your loops (good or bad). It is because you did not flush stdout, and without being flushed, the stdout...
You will have to input the letter and hit enter, because stdin is buffered that way. Stdout is also buffered that way, which adds an additional complication that might be hard to see the...