用P1口,一位接按键输入,四位接LED输出显示一个四位二进制数,每次按键,二进制数加1 P1口用4*4键盘输入,P0口接1位数码管显示16个键,分别显示0—F 实现一位十进制计算器功能
标签: P1口
上传时间: 2013-12-21
上传用户:cc1915
Input The input consists of two lines. The first line contains two integers n and k which are the lengths of the array and the sliding window. There are n integers in the second line. Output There are two lines in the output. The first line gives the minimum values in the window at each position, from left to right, respectively. The second line gives the maximum values. Sample Input 8 3 1 3 -1 -3 5 3 6 7 Sample Output -1 -3 -3 -3 3 3 3 3 5 5 6 7
上传时间: 2014-12-21
上传用户:hongmo
类似flashget下载工具代码 本来想在完善了上传的,但太忙了,有些功能可能没有实现或存在一些 bug. 编译运行说明 1)安装BCG 9.4把BCGCBPRO940d.dll BCGPStyle2007Luna.dll BCGPStyle2007Obsidian.dll BCGPStyle2007Silver.dll copy 到bin目录下 2)把程序里的SHELLAIP目录下的SHELLAPI.H覆盖vc安装目录下vc98/include/下 3)编译,运行。公司里下载请设置HTTP代理。 软件功能特点:多线程下载,断点序传,暂停下载,方便的目录管理,支持HTTP代理(我们公司里下高设置HTTP代码),方便的个性化设置,界面美观,占用内存小,下载速度快等等。 不足的地方:里面有些功能只做了界面,没有实现,:) 比如现在下载文件只能放在C:\MyDown\下 BT下载功能也没有做。没有仔细的测试过,可能存在一些bug. 有什么问题可以联系我 QQ:1495501
上传时间: 2015-12-26
上传用户:songyue1991
“贪吃蛇”是一种很流行的电子游戏。游戏方法如下 :一条蛇在棋盘上爬行,由键盘控制其转弯;棋盘上随机地出现5个数字(1~5),当蛇的头部碰到数字时(吃数字),蛇的身体会变长。当蛇的头部撞到棋盘边界或碰到自己身体时,游戏结束。游戏结束时,蛇身体越长得分越高。
上传时间: 2013-12-17
上传用户:ouyangtongze
此源程序实现了打印出 * 金字塔的功能,总共输出5行,1~5行分别是1,3,5,7,9个‘* .
上传时间: 2013-12-30
上传用户:懒龙1988
The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).
标签: converts Toolbox complex logical
上传时间: 2016-02-12
上传用户:a673761058
很好的搜索: 给你很多长度不定的木棒,将他们分成几组,每组中的总长度作为这组的标示值,请给出一种分组方法,能使得所有标示值中的最小值最大。 Input 多组,每组两行,第一行是一个N和K,代表有N根木棒,分成K组,第二行是N个数字,代表木棒的长度。(N不超过100,K不超过20,每根木棒长度不超过1000) Output 输出所有标示值中的最小值的最大值。 Sample Input 5 3 1 3 5 7 9 5 3 89 59 68 35 29 Sample Output 8 89
上传时间: 2013-12-23
上传用户:nairui21
编译原理的教学课件,国防科技大学出版的书籍的配套课件,版本很好,对于自学很有用,这是1-5章。
上传时间: 2013-12-04
上传用户:皇族传媒
用C++实现数据结构多项式四则运算程序,一定要保证输入的运算式正确,否则程序会出错 如 2*3-4/5+(3*(4+5))
上传时间: 2016-05-27
上传用户:坏坏的华仔
试设计一个贪心算法,可以兑换1角5分、1角、5分和1分的硬币。并证明你所设计的算法可得到最优解。
标签: 算法
上传时间: 2013-12-23
上传用户:6546544