- yuv_Show 直接显示YUV格式图像(YV12)的源码
- ipsec vpn相关rfc集 IPsec VPN的RFC文档集合: RFC 2401 《Security Architecture for the Internet Protocol》 RFC 2402 《IP Authentication Header》 RFC 2406 《IP Encapsulating Security Payload (ESP)》 RFC 2407 《The Internet IP Security Domain of Interpretation for ISAKMP》 RFC 2408 《Internet Security Association and Key Management Protocol (ISAKMP)》 RFC 2409 《The Internet Key Exchange (IKE)》 RFC 3947 《Negotiation of NAT
- UDP 一个基于udp的delphi实现的网络聊天工具
- maichongcotrol 此程序主要用于复杂动态网络脉冲控制实现同步的方法
- trans THI SM FILR CONVER FTROM ABC TO DQ0 IN ORDER TO DEMOSTRATE HOW TO USE THE MATLAB GUI AND SIMULINK
- dw2xls_demo_pb9 DW2XLS导出的Excel文件格式更加完整
文件名称:BNUTBDJNBOOFR
-
所属分类:
- 标签属性:
- 上传时间:2015-04-28
-
文件大小:2.63kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
【程序29】
题目:给一个不多于5位的正整数,要求:一、求它是几位数,二、逆序打印出各位数字。
1. 程序分析:学会分解出每一位数,如下解释:(这里是一种简单的算法,师专数002班赵鑫提供)
2.程序源代码:
复制代码 代码如下:
#include stdio.h
#include conio.h
main( )
{
long a,b,c,d,e,x
scanf( ld ,&x)
a=x/10000 分解出万位
b=x 10000/1000 分解出千位
c=x 1000/100 分解出百位
d=x 100/10 分解出十位
e=x 10 分解出个位
if (a!=0) printf( there are 5, ld ld ld ld ld\n ,e,d,c,b,a)
else if (b!=0) printf( there are 4, ld ld ld ld\n ,e,d,c,b)
else if (c!=0) printf( there are 3, ld ld ld\n ,e,d,c)
else if (d!=0) printf( there are 2, ld ld\n ,e,d)
else if (e!=0) printf( there are 1, ld\n ,e)
getch()
}
-Topic: no more than five to one positive integer requirements: First, find it is several orders, two, reverse print out the digits.
1. Program analysis: the decomposition of each digit Society
2. Source Code:
Code is as follows:
#include stdio.h
#include conio.h
main ()
{
long a, b, c, d, e, x
scanf ( ld , & x)
a = x/10000 break out ten thousand* /
b = x 10000/1000 break out one thousand* /
c = x 1000/100 break out one hundred* /
d = x 100/10 break out ten* /
e = x 10 break out bits* /
if (! a = 0) printf ( there are 5, ld ld ld ld ld \ n , e, d, c, b, a)
else if (! b = 0) printf ( there are 4, ld ld ld ld \ n , e, d, c, b)
else if (! c = 0) printf ( there are 3, ld ld ld \ n , e, d, c)
else if (! d = 0) printf ( there are 2, ld ld \ n , e, d)
题目:给一个不多于5位的正整数,要求:一、求它是几位数,二、逆序打印出各位数字。
1. 程序分析:学会分解出每一位数,如下解释:(这里是一种简单的算法,师专数002班赵鑫提供)
2.程序源代码:
复制代码 代码如下:
#include stdio.h
#include conio.h
main( )
{
long a,b,c,d,e,x
scanf( ld ,&x)
a=x/10000 分解出万位
b=x 10000/1000 分解出千位
c=x 1000/100 分解出百位
d=x 100/10 分解出十位
e=x 10 分解出个位
if (a!=0) printf( there are 5, ld ld ld ld ld\n ,e,d,c,b,a)
else if (b!=0) printf( there are 4, ld ld ld ld\n ,e,d,c,b)
else if (c!=0) printf( there are 3, ld ld ld\n ,e,d,c)
else if (d!=0) printf( there are 2, ld ld\n ,e,d)
else if (e!=0) printf( there are 1, ld\n ,e)
getch()
}
-Topic: no more than five to one positive integer requirements: First, find it is several orders, two, reverse print out the digits.
1. Program analysis: the decomposition of each digit Society
2. Source Code:
Code is as follows:
#include stdio.h
#include conio.h
main ()
{
long a, b, c, d, e, x
scanf ( ld , & x)
a = x/10000 break out ten thousand* /
b = x 10000/1000 break out one thousand* /
c = x 1000/100 break out one hundred* /
d = x 100/10 break out ten* /
e = x 10 break out bits* /
if (! a = 0) printf ( there are 5, ld ld ld ld ld \ n , e, d, c, b, a)
else if (! b = 0) printf ( there are 4, ld ld ld ld \ n , e, d, c, b)
else if (! c = 0) printf ( there are 3, ld ld ld \ n , e, d, c)
else if (! d = 0) printf ( there are 2, ld ld \ n , e, d)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
BNUTBDJNBOOFR.doc
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
