Search:

Type: Posts; User: MK27

Search: Search took 0.07 seconds.

  1. Replies
    25
    Views
    8,459

    If you are working on unix at school then minGW...

    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...
  2. Replies
    25
    Views
    8,459

    That is where the '\n' left in stdin will come...

    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);
  3. Replies
    25
    Views
    8,459

    LOL well if you rearrange the loop fortuitously...

    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...
  4. Replies
    25
    Views
    8,459

    The reason you do not see the character right...

    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...
  5. Replies
    25
    Views
    8,459

    You will have to input the letter and hit enter,...

    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...
Results 1 to 5 of 5