   VC++?! bleh
  #include <iostream>using namespace std;int main(){cout << "hi Gary im dan!\n";return 0;}(would someone please explain what is wrong with this code?  Its copied from a book!)error = Linking...LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16Debug/working C proggie.exe : fatal error LNK1120: 1 unresolved externalsError executing link.exe.working C proggie.exe - 2 error(s), 0 warning(s) 
  You''re creating your program as the wrong type of project. I''m not sure what the settings are in VC++, but you''re probably looking for something called a "console application", possibly with the icon of an MS-DOS window.The reason you''re getting that error is because your compiler thinks you''re writing a Windows application, and so it expects to find an entry-point routine called WinMain. You need to tell it that you''re writing a regular console program, which you generally do by selecting an option from a list when creating a new project. 