cin.get() vs system("pause")

whats really the difference between the two? is there advatanage of using one over the other? i know that cin.get() will work on other OS like linux too and that system("pause") only works on windows, from my experience that is. but is one faster than the other?
I usually have a return 0 at the end of main and put a breakpoint on there..
but is one faster than the other?


Faster??? I don't think it makes much difference how many nanoseconds it takes a computer to wait for a human to hit a key.

... Just saying.

Read up on the subject through Bazzy's links but you'll probably find your editor has this function built-in. In MS Visual C++ it's "Start Without Debugging" (cntl-F5).
Topic archived. No new replies allowed.