如何用Visual Stuio继承环境编写及调试C++小程序.ppt

如何用Visual Stuio继承环境编写及调试C++小程序.ppt

  1. 1、本文档共28页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
How to use Visual studio IDE to handle your simple C++ project -- take Visual Studio 2008 as the example Xiaoguo zhang School of Instrument Sciece and Engineering Southeast Univ. 2012/09/22 工欲善其事 必先利其器 Step 1 How to create an empty C++ project and add files to the project Step 2 How to build and run your projects Appendix: Some general error reported by Visual studio IDE To be updated for those typical errors reported by Visual Studio… Practices: create two C++ Projects and run them // The 1st C++ programme #include <iostream> using namespace std; int main() { cout<<“Hello, world\r\n”; return 0; } * 1. New a project 2. Select [Win32 Console Application] or [Win32 Project] 3. Input your project name 1. Select [Win32] under [Visual C++] 1. Select [Next>] so that you can have user-defined behaviors… 1. Select [Consol application] 2. Select “Empty projects” 3. Select [Finish] Here are [Solution view], [Class view], [Resource view], To add files to the project, you can add existing , or new files 1. Select [code] for source code file inputting 2. Select [C++ file] for adding an CPP file 3. Input the file name of the CPP file to be added 3. Select [Add] to add this file 1. A new CPP file is created and input to the current project, now click the file to edit …. Select [Build] Menu Select [Build Solution] 1. Build pass or not will be shown here. 2. If build error, errors will be listed here 3. Otherwise, exe file will be created. Pass building … Select [Debug] Select [Start without debugging] to run it. You also can press the shortcut CTRL_F5 Run the project without in debugging mode … This is the running console Windows, everything will be shown here, input or output. Finally press any key to quit … Select [Debug] Select [start debugging] to run it. You also can press the shortcut F5 Debugging the app How to enable a breakpoint Select [Debug] Select [Toggle breakpoint] Then the current line will be set a breakpoint You also can press F9 to ena

文档评论(0)

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档