- 1、本文档共12页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
c编程新手错误分析(Cprogrammingnoviceerroranalysis)
c++编程新手错误分析(C++ programming novice error analysis)
(1) my program is all right, but it doesnt work.
Think about your surroundings. Is there anyone who says that? If you had said, that stop, dont say these words, because these words will only show the speakers ignorance. Since the program is all right, then why is it wrong?
(2) program = algorithm + data structure
If we have just finished learning the C language, we say this is understandable, and it can be said to be correct. But if youre a programmer whos about to start working on C/C++ programming, then its a pity that this statement can only be a mistake, but theres another way in the world:
Program = object + message
The program = algorithm + data structure is set up only for process oriented language (C), whereas object oriented language (C++) can only be expressed as program = object + message. The traditional procedural programming language is process centric, algorithm driven, and object oriented programming languages are object centric and message driven. The message here is generalized, and object A calls the member function of object B, which can be treated as object A to send message to B.
(3) compile the program and run it correctly.
Running the right program is not always a good program. One of the things that programmers must keep in mind is that the programs they write are not only for themselves, but also for others to understand easily. Unfortunately, many programming novices do not have a clear grasp of the softwares structure. The concepts of the header file and the implementation file are ambiguous and the written program is poorly readable.
C program adopts modular programming idea. It needs to divide a large software into a series of functional independent parts, and cooperate with each other to complete the system requirements. Module header file and implementation files, correct use of documents and files is wrong:
Rule 1 header files (.H) is for the module interface declaration, including t
您可能关注的文档
- 23《美丽的小兴安岭》教学设计之九(23 beautiful little Xingan Ling teaching design nine).doc
- 2d游戏设计浅谈(Discussion on game design 2D).doc
- 2到3岁宝宝语言学习游戏(2 to 3 years old baby language learning games).doc
- 2d网络游戏排行榜排行(2D online game Ranking Ranking).doc
- 2春雨的色彩教学反思(Reflection on the 2 spring color teaching).doc
- 2b论文(2B paper).doc
- 3 2011年6月25日电子商务员考证理论真题答案(June 25, 32011 Electronic Commerce member theory research Zhenti answer).doc
- 3-disc 理论介绍(三碟理论介绍).doc
- 3.3v转5v 电平转换方法参考(3.3V 5V level conversion method).doc
- 36计记忆详解(A first memory.).doc
- 构建用户标签体系助力企业精细化运营(46页PPT).pptx
- 工程项目全过程造价管理课件(359页PPT).ppt
- 人教版(PEP)四年级上册英语 Unit 1 Helping at home A Let's talk 课件 素材 同步练习.pptx
- 教科版(2024)五年级下册科学2.4 增加船的载重量(教学课件).pptx
- 第1课 鸦片战争 课件.pptx
- Unit 2 Go for it! Developing ideas(Reading for writing)AI赋能写作课教学课件【2025新外研版七年级英语下册】.pptx
- Starter Welcome to junior high! Hold a party 课件+内嵌视频 2025-2026学年外研版英语七年级上册.pptx
- 【统编版(2024)道德与法治八年级上册】第2课时 捍卫国家利益.pptx
- 新人教版八上unit1 How do people spend their holiday. SectionA 2a-2f.pptx
- 乐果中毒教学课件.ppt
最近下载
- 社会组织会费票据管理制度(范本).pdf VIP
- 代理记账业务内部管理规范制度范本.docx(核实添加无关内容) VIP
- 《公路沥青路面施工技术规范》(F40-2004 )【可编辑】.docx VIP
- 光的人眼非视觉生物效应作用剂量 编制说明.pdf
- 多准:天猫啤酒2022年趋势报告.pdf VIP
- 2025年高考政治复习知识清单必修一《中国特色社会主义》【答题模板】.pdf VIP
- 苏S01-2012给水排水图集(无水印).docx VIP
- 制瓶机供料机.doc VIP
- 加油站防汛应急预案.docx VIP
- 泌尿外科利用PDCA循环降低持续膀胱冲洗患者膀胱痉挛的发生率品管圈.pptx VIP
文档评论(0)