如何在vc2005中完整的运行C++,包括cout等等所有原C++。如何新建一个这样的工程?(不是project from existing code)

解决方案 »

  1.   

    你新建一个空的工程,开发的时候按标准c++开发就行了.using namespace std;
      

  2.   


    #include <iostream.h>
    using namespace std;void main()
    {
         cout<<"hello"<<endl;
       
    }
    不论是否加入using namespace std;
    不论是否.h
    都不能在空项目中的DEBUG中通过,何故?
      

  3.   

    Compiling...
    Compiling resources...
    Linking...
    LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
    LINK : fatal error LNK1561: entry point must be defined 如何解决
      

  4.   

    Linking...
    MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
    D:\hello2\Debug\hello2.exe : fatal error LNK1120: 1 unresolved externals如何解决
      

  5.   

    你最好在新建工程的时候选择win32 console工程类型
    console与普通win32窗口程序有不同的编译选项,手工设置太麻烦
      

  6.   

    我先前就是用的console托管,但要修改语句,不能直接运行标准C++,有点别扭