“启动“项目"遇到了.." ,项目文件不存在 [英] "launching 'project' has encountered .." , project file does not exist

查看:401
本文介绍了“启动“项目"遇到了.." ,项目文件不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用eclipse c ++编写"hello world",但它不起作用

I wanted to write 'hello world' in eclipse c++, but it does not work

我转到运行配置",我应该为c ++程序提供哪些配置选项?

I go to Run configurations, what config options for c++ programs should i give?

我知道我不在乎'调试'-只是'发布',但是该怎么做?

I know I don't care about 'debug' - only 'release', but how to do that?

推荐答案

这是我所做的: 文件->新建-> C ++项目 您将弹出一个窗口.键入所需的项目的名称.然后,在其下方显示可执行文件,并且在此文件夹中,我有(默认情况下)为空项目. 然后,单击下一步",然后单击完成".

Here is what I did: File->New->C++ Project You will get a pop up window. Type the name of the project you want. Then, below it says executable and inside this folder, I have (by default I guess) Empty Project. Then click Next and Finish.

现在,该项目出现在Eclipse的左列中.我右键单击它,然后选择新建"->文件"并将其命名为main.cpp

Now the project appears in the left column of Eclipse. I right click it and select New->File and name it main.cpp

Eclipse的主窗口打开文件main.cpp,我写在里面:

The main window of Eclipse opens the file main.cpp and I write inside:

#include <iostream>

int main() {
std::cout << "Hello Erjan\n" << std::endl;
return 0;
}

然后,我点击构建,它是工具栏中间的锤子图标.代码已编译,我们已经准备好启动它!

Then I click on Build, it's the hammer icon in the middle of the toolbar. The code compiles and we are ready to launch it!

因此,单击运行"图标(构建"图标右侧的3个位置),您应该在控制台中看到输出.

So, click on Run icon (3 positions right of the Build icon) and you should see the output in the console.

这篇关于“启动“项目"遇到了.." ,项目文件不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆