Search:

Type: Posts; User: gmk0351

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    9,071

    Thanks very much Mats! After you explained what...

    Thanks very much Mats! After you explained what was happening with the getchar(), I was able to find another thread with a similar problem. They simply advised inserting another getchar(); after the...
  2. Replies
    5
    Views
    9,071

    If I replace the old "if" with the new "while",...

    If I replace the old "if" with the new "while", would it exit the program? Or would it continue to loop within the outer "while"?

    The only reason I have the outer "while" loop (or any other loop)...
  3. Replies
    5
    Views
    9,071

    Sorry for the poor formatting, I have been...

    Sorry for the poor formatting, I have been cutting/pasting all kinds of things just trying to get it to stop going through the loop twice (if that is what it is actually doing.

    I think you are...
  4. Replies
    5
    Views
    9,071

    Can a "switch" be inside a loop?

    I am trying to write a simple program for calculating sines and cosines, which should continue until “q” is entered to quit. I assume that using a “switch” statement would be the easiest method, so...
Results 1 to 4 of 4