编译器问题C ++ [英] Compiler Problem C++

查看:151
本文介绍了编译器问题C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,

我开始用我的书编写C ++脚本,我想做一些练习,当我点击F5或Debug时progrem会给我这个错误:

无法启动程序'c:\users \Dan \documents\visual studio 2010 \Projects\ firstproject\Debug\testings.exe'。

系统无法找到文件指定。

我如何解决这个问题?

我用C#编写脚本并且它永远不会发生在我身上......



图片: http://sizmedia.com/my.php?i=njenjmmzxmji.png [ ^ ]

推荐答案

从快速查看图像我注意到的第一件事是你没有Build菜单 - 这可能与你的问题有关,因为在构建解决方案之前你不会有一个文件要执行。



我的猜测是你用错误的项目类型创建了这个,你选择的类型没有任何编译选项。



所以,关闭它,并打开一个新的VS窗口。

从菜单中选择文件,然后选择新建...新项目

选择一个控制台应用程序(我不使用Express版本VS,所以我不确切知道你有哪些)给它命名,然后按OK。



现在你应该有一个Build菜单,然后按下F5应该构建项目然后运行它。
The first thing I notice from a quick look at the image is that you don't have a Build menu - which is probably related to your problem, as until the solution has been built you will not have a file to execute.

My guess is that you have created this with the wrong project type and the type you have selected does not have any compilation options.

So, close that, and open a new VS window.
From the menu, select "File" and then "New...New Project"
Select one of the Console applications (I don't use the Express version of VS, so I don't know exactly which ones you have) give it a name, and press OK.

Now you should have a Build menu, and pressing F5 should build the project and then run it.


这篇关于编译器问题C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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