#include<stdio.h>
int main()
{
int i;
char a[5]={'a','b','c','d','e'};
fopen("pppp","a");
for(i=0;i<5;i++)
{
fput(a[i],D:\\pppp.txt);}
}
组建的结果--------------------Configuration: 002 - Win32 Debug--------------------
Compiling...
->002.cpp
D:\Microsoft Visual C++ 6.0 Plus\Common\MSDev98\Bin\002.cpp:9:3: error: stray '\243' in program
fput(a[i],D:\\pppp.txt);}
^
D:\Microsoft Visual C++ 6.0 Plus\Common\MSDev98\Bin\002.cpp:9:3: error: stray '\254' in program
D:\Microsoft Visual C++ 6.0 Plus\Common\MSDev98\Bin\002.cpp:9:3: error: stray '\243' in program
D:\Microsoft Visual C++ 6.0 Plus\Common\MSDev98\Bin\002.cpp:9:3: error: stray '\272' in program
D:\Microsoft Visual C++ 6.0 Plus\Common\MSDev98\Bin\002.cpp:9:3: error: stray '\' in program
D:\Microsoft Visual C++ 6.0 Plus\Common\MSDev98\Bin\002.cpp:9:3: error: stray '\' in program
D:\Microsoft Visual C++ 6.0 Plus\Common\MSDev98\Bin\002.cpp: In function 'int main()':
D:\Microsoft Visual C++ 6.0 Plus\Common\MSDev98\Bin\002.cpp:9:14: error: expected ')' before 'D'
fput(a[i],D:\\pppp.txt);}
^
D:\Microsoft Visual C++ 6.0 Plus\Common\MSDev98\Bin\002.cpp:9:27: error: 'fput' was not declared in this scope
fput(a[i],D:\\pppp.txt);}
^
执行 cl.exe 时出错.
002.exe - 1 error(s), 0 warning(s)