Hello @lauras8306 ,
Welcome to Microsoft Q&A forum.
I guess you selected the Empty Project for creating an application with a Windows user interface, if you choose the Empty Project for creating a command-line application, this issue may not appear.
Anyways, please right-click your project > Properties > Configuration Properties > Linker > System > SubSystem > try to select Console (/SUBSYSTEM:CONSOLE)
> then rebuild your project.
Feel free to let us know the results.
Sincerely,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.