简体   繁体   English

Microsoft Visual Studio 2017非常需要基本帮助:“系统找不到指定的文件”

[英]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.

相关问题 Visual Studio 错误“无法启动程序:系统找不到指定的文件。” - Visual Studio Error “Unable to start program: The system cannot find the specified file.” 如何修复系统找不到在 visual studio 2022 中指定的文件 - how can fix The system cannot find the file specified at visual studio 2022 无法启动程序,找不到指定的文件,Visual Studio 11 - Unable to start program, cannot find the file specified, Visual Studio 11 无法运行程序“make”:系统找不到指定的文件? - Cannot run program “make”: The system cannot find the file specified? 通过CMD复制时,系统找不到指定的文件 - System cannot find the file specified while copying through CMD 编程C时系统找不到指定的文件 - The system cannot find the file specified while programming C GetFileAttributesW API 抛出“系统找不到指定的文件” - GetFileAttributesW API throws ‘system cannot find the file specified’ Make error: make (e=2): 系统找不到指定的文件 - Make error: make (e=2): The system cannot find the file specified C makefile,在CCS中,“系统找不到指定的文件” - C makefile, in CCS, “The system cannot find the file specified” Visual Studio 2017 中的 C 文件处理 - C File handling in visual studio 2017
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM