小编dah*_*ana的帖子

无法打开包含文件:'stdio.h' - Visual Studio Community 2017 - C++错误

我正在尝试在Visual Studio社区2017上构建解决方案,但我不断收到错误" 无法打开包含文件:'stdio.h' ".我已经阅读了几个类似的问题,但仍然无法解决这个问题.看起来在stdafx.h文件中调用了stdio.h文件.以下是更多细节.有什么建议?(我无法嵌入图片,所以请点击链接进行截图.)

系统详细信息: Windows 10
Visual Studio Community 2017 v.15.2(26430.6)
- 使用C++安装的桌面开发(屏幕截图:安装列表)


第1步:我用C++编写了着名的Hello World程序.

#include "stdafx.h"
#include <iostream>
using namespace std;

int main()
{
    cout << "Hello World!" << endl;
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

第2步:我点击了Build> Build Solution.

问题: 'stdio.h':没有这样的文件或目录.完全错误:

1>------ Build started: Project: HelloWorld, Configuration: Debug Win32 ------
1>stdafx.cpp
1>c:\users\dahiana mini\desktop\learncpp\helloworld\helloworld\stdafx.h(10): 
    fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
1>Done building project "HelloWorld.vcxproj" -- …
Run Code Online (Sandbox Code Playgroud)

c++ stdio visual-studio visual-studio-2017

44
推荐指数
5
解决办法
13万
查看次数

如何从命令行(Git Bash)删除远程Git存储库?

我正在尝试通过Git Bash删除远程git存储库.我知道我可以通过GitHub删除它; 但是,我想通过命令行学习如何这样做.我不只是想删除它中的文件,或者替换它,我想完全删除它.我花了最后两天筛选论坛,文章,博客和教程,但没有任何工作.

一些初始信息:

$ git remote -v
thisbranch https://github.com/thisuser/test-repo.git (fetch)
thisbranch https://github.com/thisuser/test-repo.git (push)

$ git status
On branch master
nothing to commit, working directory clean

$ git log
Author: *info*
Date: *info*
   adding a new file
Author: *info*
Date: *info*
   Initial commit

$ git remote -v show thisbranch
* remote thisbranch
  Fetch URL: https://github.com/thisuser/test-repo.git
  Push URL: https://github.com/thisuser/test-repo.git
  HEAD branch: master
  Remote branch:
    master tracked
  Local ref configured for 'git push':
    master pushes to master (up to date)
Run Code Online (Sandbox Code Playgroud)

我试过的一些事情: …

git github repository

9
推荐指数
2
解决办法
9907
查看次数