msvc11如何编译printf("msvc");
仅 <iostream>
标题?
#include <iostream>
using namespace std;
int main()
{
printf("test123");
cin.get();
return EXIT_SUCCESS;
}
没有错误...
msvc11
最佳答案
对于 Visual Studio 2013,iostream
包括 istream
,其中包括 ostream
,其中包括 ios
,其中包括 xlocnum
其中包括 cstdio
,其中包括 stdio.h
。这只是标准头文件溢出。
关于visual-c++ - 编译 printf() 而不包含 <stdio.h>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18291590/