On Jan 11, 2008 2:26 PM, Sean Brewer <[EMAIL PROTECTED]> wrote:

> Brett's or Jim's answer's should work fine. If you're working from an
> IDE (like Dev-C++), and you're just learning C++ you might want to do
> what Jim said to do, especially if you don't know how to navigate
> around your computer with the command prompt yet (which you should
> learn how to do). I took a class on data structures last semester
> (which was, believe it or not, taught in C) with Dev-C++, and we
> usually used getch(), because it was more convenient to get an instant
> result instead of opening up a command prompt.

I like the "run from the command-line" or "set a breakpoint solution"
over putting in an artificial pause. If you get in the habit putting
in the pause, once you start doing real development and you are making
console applications, you will have to unlearn that habit because
people will be running your software and wondering why it hangs and
doesn't return to the command-line. And this is true whether you are
using Windows or one of the many Unix variants.

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to