DON'T USE system("pause);
It's not always the greatest choice, as sometimes it refuses to work.
Instead, use cin.get(); twice like this
cin.get();
cin.get();
STOP TELLING US TO USE cin.get(); ALL THE TIME FFS!
We know its better, we know you are an almighty coder that knows it all, and we do not care since most of us only use it for apps we make for ourselves(and alot if not all of us are on the windows platform).