I wasn't angry. I was frustrated that, after having taken the time and effort to make a simple link to answer such questions, it was not used. Hence, I used a little humor and a droll shove in the right direction to break bad habits before they start. The OP obviously has no idea either way... why perpetuate dangerous programming habits?
for starters, not one of you answered his question, you were to busy aruging that habits of system commands( which is basically what this hole form is about now).
You cannot just delete one line of text from your console, if you dont want it there then dont output it. You can remove the "press any key to continue" by using cin.get().