在Visual Studio 2022中无法开源文件

发布于 2025-01-21 06:44:55 字数 386 浏览 1 评论 0原文

目前,我正在尝试使用< iostream>进行简单的放置和输入游戏,但是每当我键入#include< iostream>时,一个错误会出现。开源文件“ iostream”。“我试图复制文件路径,但就我个人而言,即使使用教程,我也不知道该怎么做。

这是我的代码:

#include <iostream>

using namespace std;

int main()
{
    cout << "Welcome human!\n" << endl;

    return 0;
}

如果您响应如何执行文件目录,请说明您最近开始向C ++初学者解释它。 :)

Currently, I am trying to make a simple out put and input game using <iostream> but whenever I type #include <iostream> an error pops up saying "cannot open source file "iostream."" I have tried to copy the file path, but personally, I have no idea how to do that, even with tutorials.

Here is my code:

#include <iostream>

using namespace std;

int main()
{
    cout << "Welcome human!\n" << endl;

    return 0;
}

If you respond on how to do the file directory, do explain like you are trying to explain it to a c++ beginner since I recently started. :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文