Can't you just place a getchar() function at the end of your code. Your program is that your program runs so fast that no can't see it. I would put the getchar() function at the end of the code just to test if that will keep the program from running and just disappearing.