这是我正在使用的代码.
#include "stdafx.h"
#include <iostream>
int main() {
std::cout << "hi";
return 0;
}
Run Code Online (Sandbox Code Playgroud)
当我创建简单的c ++控制台应用程序并尝试构建它时,会发生以下错误:
cannot open include file 'stdio.h': No such file or directory
Run Code Online (Sandbox Code Playgroud)
为什么?stdio.h不应该作为标准库包含在内吗?我能做些什么来取回它?
编辑:我刚看了C:\ Program Files(x86)\ Microsoft Visual Studio 14.0\VC\include目录.没有stdio.h或stdafx.h.我真的不确定为什么.我怎样才能让他们回来?
c++ ×1