登录
首页 » c » C循环结构

C循环结构

于 2022-06-20 发布 文件大小:1.78 kB
0 106
下载积分: 2 下载次数: 1

代码说明:

14.5 C循环结构  循环体是程序设计与优化的重点考虑对象。本节将着重讲解在ARM上处理for和while循环最有效的方法。  14.5.1 循环中止  首先来看下面的例子,两个不同的循环退出条件,产生的不同汇编代码。  C源程序如下所示。  int fact1 (int n)  {  int i, fact = 1;  for (i = 1; i 《= n; i++)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • TRCE
    本代码是针对于土壤下位机的一个上位机,能显示出土壤湿度百分比。(This code is a PC for soil machine, can show the percentage of soil moisture.)
    2015-04-26 08:34:38下载
    积分:1
  • LDPC编码C代码
    说明:  基于5G-NR通过C语言实现的LDPC编码,可以使用,注释明确,易于上手(LDPC coding realized by C language based on 5g-nr can be used, annotated and easy to use)
    2020-06-26 18:00:02下载
    积分:1
  • NRF24L01 无线通信
    该芯片通过 SPI 与外部 MCU 通信,最大的 SPI 速度可以达到 速度可以达到 10Mhz 。使用两块战舰 STM32 STM32开发板,一块用 于送收据另外于接收,从而实现无线数据传。无线通信模块广泛地运用在车辆监控、遥控、遥测、小型无线网络、无线抄表、门禁系统、小区传呼、工业数据采集系统、无线标签、身份识别、非接触RF智能卡、小型无线数据终端、安全防火系统、无线遥控系统、生物信号采集、水文气象监控、机器人控制、数字音频、数字图像传输等领域中。
    2022-03-19 00:02:04下载
    积分:1
  • Digital-Image-Processing
    Labwindows/CVI实现了常见的数字图形处理算法,如滤镜,正交表换 边缘检测等(Common digital graphics processing algorithms, such as filters, orthogonal change of edge detection)
    2012-04-23 22:22:38下载
    积分:1
  • taskmgr
    任务管理器源代码,界面模仿windows下自己的任务管理器,需要的同学可以看看(Task Manager source code)
    2009-06-02 19:49:46下载
    积分:1
  • pinfanfangwen
    设有一头指针为L的带有表头结点的非循环双向链表,其每个结点中除有prev(前驱指针),data(数据)和next(后继指针)域外,还有一个访问频度域freq。在链表被起用前,其值均初始化为零。每当在链表中进行一次Locate(L,x)运算时,令元素值为x的结点中freq域的值增1,并使此链表中结点保持按访问频度非增(递减)的顺序排列,同时最近访问的结点排在频度相同的结点的最后,以便使频繁访问的结点总是靠近表头。试编写符合上述要求的Locate(L,x)运算的算法,该运算为函数过程,返回找到结点的地址,类型为指针型。(Has a head pointer is non-circular doubly linked list L with a header node, each node in addition to prev (precursor pointer), data (data) and next (successor pointers) outside, there is an access frequency degree domain freq. Before the list was hired, their values are initialized to zero. Whenever carried out in the list once Locate (L, x) when the operation, so that the element node x is the value in freq domain by one, and keep this list in the node-access frequency of non-increasing (decreasing) the order, while a recent visit to the nodes in the same row of the frequency of the last node, so that the nodes are frequently accessed tables are always near the head. Locate (L, x) algorithm is prepared in accordance with the above requirements of the test operation, the operation as a function of the process, return to find the address of the node of type pointer.)
    2015-01-15 22:31:59下载
    积分:1
  • C语言写的俄罗斯方块
    闲来无事,就尝试着编写一些以前花了不少时间才写出的俄罗斯方块,顺便练练手,看看自己的编程能力提升了多少,如果代码还有可以修改处,请指出。
    2023-07-30 00:50:02下载
    积分:1
  • 2008091715050096
    pig串口调试串口调试.txt串口调试.txt串口调试.txt串口调试.txt串口调试.txt串口调试.txt串口调试.txt串口调试.txt(pig serial debug)
    2009-03-24 01:32:18下载
    积分:1
  • Cmp
    VC++实现多个文件进行比较;VC++实现多个文件进行比较;(Multiple file to Competer,Multiple file to Competer,Multiple file to Competer,)
    2014-12-10 16:51:33下载
    积分:1
  • cn_mega8535-8535L
    高档AVR单片机Atmega8535中文资料,适合单片机初学者和开发者作参考资料。(upmarket AVR Atmega8535 Chinese data, MCU for beginners and developers for reference.)
    2007-02-03 16:12:47下载
    积分:1
  • 696516资源总数
  • 106446会员总数
  • 9今日下载