Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\new>"D:\Program Files\Microsoft Visual Studio\VC98\Bin
\VCVARS32.BAT"
Setting environment for using Microsoft Visual C++ tools.
C:\Documents and Settings\new>d:
D:\>cd c
D:\c>cl /c 1.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
1.cpp
1.cpp(4) : error C2065: 'count' : undeclared identifier
1.cpp(4) : error C2065: 'array' : undeclared identifier
1.cpp(4) : error C2109: subscript requires array or pointer type
1.cpp(5) : error C2109: subscript requires array or pointer type
1.cpp(7) : warning C4508: 'main' : function should return a value; 'void' return
type assumed
D:\c>cl /c 1.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
1.cpp
1.cpp(5) : error C2065: 'array' : undeclared identifier
1.cpp(5) : error C2109: subscript requires array or pointer type
1.cpp(6) : error C2109: subscript requires array or pointer type
1.cpp(8) : warning C4508: 'main' : function should return a value; 'void' return
type assumed
D:\c>