已阅读5页,还剩23页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
HowtouseVisualstudioIDEtohandleyoursimpleC project takeVisualStudio2008astheexample XiaoguozhangSchoolofInstrumentScieceandEngineeringSoutheastUniv 2012 09 22 工欲善其事必先利其器 Step1HowtocreateanemptyC projectandaddfilestotheproject 1 Newaproject 2 Select Win32ConsoleApplication or Win32Project 3 Inputyourprojectname 1 Select Win32 under VisualC 1 Select Next sothatyoucanhaveuser definedbehaviors 1 Select Consolapplication 2 Select Emptyprojects 3 Select Finish Hereare Solutionview Classview Resourceview Toaddfilestotheproject youcanaddexisting ornewfiles 1 Select code forsourcecodefileinputting 2 Select C file foraddinganCPPfile 3 InputthefilenameoftheCPPfiletobeadded 3 Select Add toaddthisfile 1 AnewCPPfileiscreatedandinputtothecurrentproject nowclickthefiletoedit Step2Howtobuildandrunyourprojects Select Build MenuSelect BuildSolution 1 Buildpassornotwillbeshownhere 2 Ifbuilderror errorswillbelistedhere3 Otherwise exefilewillbecreated Passbuilding Select Debug Select Startwithoutdebugging torunit YoualsocanpresstheshortcutCTRL F5 Runtheprojectwithoutindebuggingmode ThisistherunningconsoleWindows everythingwillbeshownhere inputoroutput Finallypressanykeytoquit Select Debug Select startdebugging torunit YoualsocanpresstheshortcutF5 Debuggingtheapp HowtoenableabreakpointSelect Debug Select Togglebreakpoint ThenthecurrentlinewillbesetabreakpointYoualsocanpressF9toenableabreakpointinthecurrentline Howtosetabreakpointduringdebug Currentlineofthecppsourcefiles Runningprocesscouldbepausedifabreakpointisset Runningprocesspausedwhenmeetsabreakpointsetbyyou Togoonrun PressF5togoonrunningPressF10tostepover bypassthecurrentlinePressF11tostepin whichmeanstodetaillydebugcurrentline eg Enterafunction Towatchvariablesduringdebug method1 Inbreakstate ifyouputyourmousenearavariableinCPPfile theIDEwillshowitsvalue Inthispicture themouseiconisnearvariable i andtheIDEshowthevalue1 Towatchvariablesduringdebug method2 In watch Window inputiunder name andthenthevalueofiwillbeshownYoucanmodifyvalueinwatchwindowinrun time justclickonthevalue andre writeit Appendix SomegeneralerrorreportedbyVisualstudioIDE Undeclaredidentifier youuseavariablebeforedefiningitdeclareitbeforeusing Undeclaredidentifier Undeclaredidentifier becauseyouforget usingnamespacestd forstreamingAPI Undeclaredidentifier TobeupdatedforthosetypicalerrorsreportedbyVisualStudio Practices createtwoC Projectsandrunthem The1stC programme includeusingnamespacestd intmain cout Hello world r n return0 T
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 企业资金监管与分析系统
- 无机反应工初级面试预测
- 2025广东广州新龙镇招聘农村集体出纳(文员)1人笔试考试备考试题及答案解析
- 2025广东中山大学附属口腔医院牙周病科口腔助理医师招聘笔试考试参考题库附答案解析
- 2025贺兰县国有资产运营集团有限公司及其子公司招聘岗位递补笔试考试参考题库及答案解析
- 2025河北雄安新区未来健康传播中心招聘笔试考试参考题库附答案解析
- 企业股东结构调整方案
- 2025滁州明光市消防救援大队政府专职消防员招聘20人考试笔试备考题库及答案解析
- 2025广东湛江市委党校招聘专业技术人员考试笔试参考题库附答案解析
- 建筑企业项目全额承包管理办法解析
- 酒店设施设备保养与维护规程
- 硕士之路的挑战与收获
- 高血压病人的护理(PPT)
- 变更还款人个人协议书
- 帮人贷款协议书范本
- 6.1碳单质的多样性(第一课时)-【知识探究】九年级化学人教版(2024)上册
- 2025年消控员考试题及答案
- 《铁路线路维护手册》课件
- 物业客服服务沟通技巧培训课件
- 企业年度经营状况分析调研报告
- 梨树蜜蜂授粉技术规程
评论
0/150
提交评论