How do I resolve the issue so the code runs properly? [closed]

I guess you configured project as some type of “Windows application” instead of “console application”

In programming there are those pieces called “functions” and classical c++ application is started by calling function called “main”, but widows application use “WinMain” instead so it tries to find “WinMain” which does not exists, try to create new project and make sure it’s some kind of “consol application” not “windows application” since even if you change main to WinMain it still might cause more problems in future.

Leave a Comment