You're using a Win32 application project when you want a console application project. Win32 applications expect WinMain instead of main.
But it still doesn't work for me.
I'm just a freshmen. I set up a blank workplace, then win32 application project, then a c++ cource file.
Then type as below:
#include <iostream>
void main()
{
std::cout <<"welcome" <<std::endl;
}
No matter I use "main" or "WinMain" in the second line, it just doesn't work.
Also the linking problem.