C语言编程学习课件 (2).pdf

上传人:刘静 文档编号:57975344 上传时间:2022-11-06 格式:PDF 页数:8 大小:903.81KB
返回 下载 相关 举报
C语言编程学习课件 (2).pdf_第1页
第1页 / 共8页
C语言编程学习课件 (2).pdf_第2页
第2页 / 共8页
点击查看更多>>
资源描述

《C语言编程学习课件 (2).pdf》由会员分享,可在线阅读,更多相关《C语言编程学习课件 (2).pdf(8页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、Programming In CProgramming In C Contents 01 02 03 the concept of algorithm the features of algorithm the representation of algorithm the concept of algorithm Niklaus Wirth,the father of Pascal and pioneer of structured programming,once pointed out that algorithms are the soul of programming algorit

2、hms+data structures=programs the concept of algorithm Cooking and studying require clear thinking and logical steps,so does programming.Algorithm refers to the methods and steps taken to solve a specific problem.A good algorithm helps to solve the problem efficiently.A bad algorithm consumes more ti

3、me and resources.A wrong algorithm leads to wrong results.the features of algorithm input:An algorithm has zero or multiple inputs,and zero input indicates that the algorithm itself has initial conditions.output:An algorithm must have one or more outputs.An algorithm without output are meaningless.f

4、initeness:The execution steps of an algorithm must be limited,and the execution time of each step is also limited.definiteness:Each step of an algorithm must have a clear meaning.feasibility:each step of an algorithm can be decomposed into a limited number of basic operations.the representation of a

5、lgorithm The representation of an algorithm should be beneficial to the main idea of algorithm communication between programmers,as well as to the improvement and optimization of the algorithm.representation methods:pseudocode,flowchart,NS(NassiShneiderman)diagram,PAD(Problem Analysis Diagram),etc.A

6、 flowchart is an efficient way to represent algorithm by using boxes,flow lines and brief text descriptions.Among them,program diagram represents specific steps,and flow line represents its execution sequence.the representation of algorithm First,input two numbers,denoted by a and b respectively;Second,compare the two numbers to get the larger one;Third,save the larger one into the variable max;Fourth,output max.We can see that in order to solve this problem,the algorithm includes four steps.Programming In CProgramming In C

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 大学资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com