umm... i think i know the problem..
if you don't use the excute button in VC++ and run the program by itself that pause won't be there.