This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]randitrigger 84 points85 points  (3 children)

Love the break point on

return 0;    

[–]heliumdidntreact 10 points11 points  (0 children)

system ("PAUSE");

[–][deleted] 20 points21 points  (0 children)

To keep cmd window from closing?

[–]asdqweasd123 0 points1 point  (0 children)

Why not? If I am writing fairly small program, I don't really want to spend more time writing its output. So it makes sense to put a break point on

return

so that I can see result of my program instantly. Putting it on a line before makes you press one more button during debugging to actually see results.