If you are on MSVS change your subsystem to Console and add a main function.