[英]Microsoft Visual Studio 2017 VERY basic help needed: “The system cannot find the file specified”
I'm doing an Introduction to C Programming course
at the moment, only just started, and I am running into an issue I just can't get around. 目前,我正在做
Introduction to C Programming course
,只是刚刚开始,而我遇到了一个我无法解决的问题。 The course instructor is no help, and I know the issue is extremely basic, but every solution I find online assumes good working knowledge of the software. 课程讲师没有帮助,我知道这个问题是非常基本的,但是我在网上找到的每个解决方案都假定您具备该软件的良好使用知识。 I don't have that, not yet anyway.
我还没有,还没有。
I'm simply trying to run the following code: 我只是试图运行以下代码:
#include <stdio.h>
int main(void)
{
printf("Hello");
getch();
return 0;
}
This is, I believe, supposed to display "Hello" on the screen when I run it. 我相信这是应该在我运行它时在屏幕上显示“ Hello”。 But when I press F5 to debug I get the following message:
但是,当我按F5进行调试时,会收到以下消息:
"Unable to start program. '[file path].Project1.exe' The system cannot find the file specified."
So there needs to be a .exe
file there, but how do I make one? 因此,那里需要一个
.exe
文件,但是我该如何制作一个? I've searched through many other answers to similar issues across the web, but all of them make reference to things I simply don't understand yet, so I'm asking here for a layman's explanation of how to resolve this. 我在网络上搜索了许多其他类似问题的答案,但是所有这些答案都引用了我根本不了解的内容,因此我在这里要求外行人解释如何解决此问题。
Thanks so much to anyone who can help. 非常感谢任何可以提供帮助的人。
In your output window you are currently seeing that message in the Debug
, right? 在输出窗口中,您当前正在
Debug
看到该消息,对吗? You need to change that to Build
or (I prefer) Build Order
(which keeps the multi-threaded items in a sensible order for output). 您需要将其更改为“
Build
或(我更喜欢)“ Build Order
(这会使多线程项保持合理的输出顺序)。 This will show you why your program didn't build - hence you have no "exe" to run. 这会告诉你为什么你的程序没有建立 -因此你没有“执行”运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.