你的
if (Sayhello(SzCpp;2))
{SayGoodbye();
}
中间有一个分号
另外不要
#include<stdafx.h>

解决方案 »

  1.   

    //cout<<"Bye,"<<OLD_FRIEND<<end1;
    最后一个是endl
    不是end1
      

  2.   

    这个程序可能再简单一不过,在vc中仍不能通过#include <iostream.h>void main(void)

     cout<<"hello,c++";
     }
    --------------------Configuration: hello6 - Win32 Debug--------------------
    Compiling...
    Error spawning cl.exehello6.obj - 1 error(s), 0 warning(s)
    不管要不要#include<stdafx.h> 都这样?
     
      

  3.   

    是不是cl.exe有问题。在不在?