我在 Windows 7 上使用 Visual Studio 6 和 vc++,并编写了一个简单的 helloworld 程序,该程序默认由 VS6 创建。但由于 printf 它给出了以下错误:
// testapp.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int main(int argc, char* argv[])
{
printf("Hello World!\n");
return 0;
}
错误 :
--------------------Configuration: testapp - Win32 Debug--------------------
Compiling...
StdAfx.cpp
Compiling...
testapp.cpp
D:\PROJECTS\FATT\testapp\testapp.cpp(8) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'E:\8783\vc98\p2\src\P2\main.c', line 494)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
Error executing cl.exe.
testapp.exe - 1 error(s), 0 warning(s)
为什么 printf 和 sprintf 不起作用?