#include <iostream>
int main()
{
using namespace std;
cout << "Hello" << " " << "World" << endl;
return 0;
}
起因:合并了C盘和D盘,重装VS2017
报错:C1083 无法打开包括文件: "corecrt.h*: No such file or directory
可以参考链接,修改一下路径https://blog.csdn.net/qq_36786467/article/details/121527371
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows Kits\Installed Roots
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows App Certification Kit下的InstallLocation
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots下的KitsRoot10
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows Kits\Installed Roots下的KitsRoot10
把其中出现D盘的位置都修改成C盘,再重新安装。