• 首页
  • 期刊简介
  • 编委会
  • 投稿指南
  • 收录情况
  • 杂志订阅
  • 联系我们
引用本文:龙敏敏.“百钱买百鸡”问题的C语言算法分析[J].软件工程,2017,20(3):24-25.【点击复制】
【打印本页】   【下载PDF全文】   【查看/发表评论】  【下载PDF阅读器】  
←前一篇|后一篇→ 过刊浏览
分享到: 微信 更多
“百钱买百鸡”问题的C语言算法分析
龙敏敏
(衡阳市广播电视大学,湖南 衡阳 421001)
摘 要: C语言是使用时间最久和最普及的计算机高级程序设计语言之一,属于面向过程的程序设计语言,兼有汇 编语言和高级语言的双重特点,是人们学习计算机程序设计的首选语言,也是学习其他计算机课程和进行软件开发的基 础。C语言程序设计中的循环语句是C语言的一个难点,可以用来解决许多具有规律性重复操作的实际问题,文章通过 对“百钱买百鸡”这个问题的算法进行设计、分析和优化,以寻求解决问题的最优算法。
关键词: C语言;循环语句;百钱买百鸡
中图分类号: TP311.1    文献标识码: A
An Analysis of the Algorithm for "Spending 100 Dollars on 100 Chickens" in C Programming Language
LONG Minmin
( Hengyang Radio & TV University, Hengyang 421001, China)
Abstract: As a process-oriented programming language,C programming language is one of the most classic and popular computer programming languages with the characteristics of the assembly language and the high-level language.It is not only the first choice for the people who begin to learn computer programming,but also the basis for other computer courses and software development.As a difficult point in C Programming Language learning,the loop statement can be used to solve many practical problems of regularly repetitive operation.Taking the case of "spending 100 dollars on 100 chickens",the paper implements design,analysis and optimization,and finally proposes the optimal algorithm.
Keywords: C programming language;loop statement;spending 100 dollars on 100 chickens


版权所有:软件工程杂志社
地址:辽宁省沈阳市浑南区新秀街2号 邮政编码:110179
电话:0411-84767887 传真:0411-84835089 Email:semagazine@neusoft.edu.cn
备案号:辽ICP备17007376号-1
技术支持:北京勤云科技发展有限公司

用微信扫一扫

用微信扫一扫