visual-c++ - 编译 printf() 而不包含 <stdio.h>

标签 visual-c++ visual-studio-2012

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/

相关文章:

c++ - QtCreator qmake 无法运行编译器 'cl'

c++ - 具有委托(delegate)构造函数的 constexpr

c++ - 在C++中声明一个较大的全局变量会导致错误消息0xc0000018

javascript - 我可以在 VS 2012 的 webbrowser 控件中调试 javascript 代码吗

.net - System::Drawing::Bitmap 到 cv::Mat (OpenCV c++/cli)

c++ - 我可以让 VC++ Intellisense 忽略一些它认为无效的东西吗?

c# - 没有可用的 System.Runtime.Caching?

msbuild - SpecsFor.Mvc 构建失败

c++ - 项目仅在特定版本的 Visual Studio 中编译

sql-server - Visual Studio 代码映射 : Unable to connect to the specified database