为什么运行不了
#include stdio<>main()
{
int a,b;
scantf("%d",&a);
b=abc(a);
printf("/%d/=%d\n",a,b);
}
int abc(x)
int x;
{
int y;
if(x>0) y=x;
esle y=-x;
return(y);
}
------------------------------------------------
VC++中运行结果 :
c:\documents and settings\administrator\桌面\vc++练习\cpp1.cpp(1) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\administrator\桌面\vc++练习\cpp1.cpp(5) : error C2065: 'scantf' : undeclared identifier
c:\documents and settings\administrator\桌面\vc++练习\cpp1.cpp(6) : error C2065: 'abc' : undeclared identifier
c:\documents and settings\administrator\桌面\vc++练习\cpp1.cpp(7) : error C2065: 'printf' : undeclared identifier
c:\documents and settings\administrator\桌面\vc++练习\cpp1.cpp(9) : error C2065: 'x' : undeclared identifier
c:\documents and settings\administrator\桌面\vc++练习\cpp1.cpp(10) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
c:\documents and settings\administrator\桌面\vc++练习\cpp1.cpp(10) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错
----------------------------------------------------------
找不出哪里错了,但是放到TC 2.0中运行成功
疑惑 大侠们帮我看看,谢谢