Using system("pause") is poor practice. Let me explain why.
1. It uses a lot of overhead.
2. It calls from the command line a executable program called "pause" which has nothing to do with your...