error LNK2001: unresolved external symbol _WinMain@16

新建的控制台应用程序,编译出错。

选错工程类型,可以在project settings//link//project options里进行更改,把windows改为console