If you're compling and then double clicking the .exe it's because the console is opening and closing so fast you can't see it. Try opening a command prompt and running the .exe from there.