added system pause code

added system("pause"); to work with dev-cpp