汉诺塔!!! Simulate the movement of the Towers of Hanoi puzzle Bonus is possible for using animation eg. if n = 2 A→B A→C B→C if n = 3 A→C A→B C→B A→C B→A B→C A→C
标签: the animation Simulate movement
上传时间: 2017-02-11
上传用户:waizhang
实现开漏输出的并口,支持3.3V或5V,支持FPGA 的PS 配置功能。8位配置数据 自动移位输出,输入时钟24MHz,产生1MHz配置时钟。8位CPU数据总线接口, 11位地址总线。支持IO 的置位清除功能。
上传时间: 2013-12-14
上传用户:ynsnjs
openblog是一个博客管理系统,为美工人员提供数据调用接口,实现动态管理。
上传时间: 2014-09-08
上传用户:llandlu
一个ISAG Server的模拟器,基于中国电信综合业务接入网关的开放接口协议做的,已有接收SP下发短信、彩信、WAP PUSH的功能,可以自动回复回执,自带流量统计功能。
上传时间: 2013-12-22
上传用户:zhoujunzhen
单片机LED显示屏的多项研究,包括LED多媒体软件系统设计与开发,LED显示屏的应用,LED显示屏高速数据通讯接口设计等
上传时间: 2017-07-03
上传用户:ANRAN
单片机开发,无线传输数据,通信协议自编,包括数据的接受和发送
标签: 单片机开发
上传时间: 2014-01-17
上传用户:ruixue198909
PIC16C63单片机UART通信——A机读取时钟芯片DS1302获得当前时间,通过UART通信传给B机,B机使用LCD1602显示当前时间
上传时间: 2013-11-30
上传用户:shanml
A design about 8051 (running at 12MHz) based system with 3 7-Seg displays and two buttons to implement the following functions. 1. When press the + button, the display C = A+B. 2. When press the button, the display C = A - B. “A” and “B” are 8-bit inputs when “C” is 9-bit output.
上传时间: 2015-05-05
上传用户:guoxiy
中国移动短信接口协议cmpp30cmpp30cmpp30
标签: 协议
上传时间: 2015-12-05
上传用户:lixinran550
题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少? //这是一个菲波拉契数列问题 public class lianxi01 { public static void main(String[] args) { System.out.println("第1个月的兔子对数: 1"); System.out.println("第2个月的兔子对数: 1"); int f1 = 1, f2 = 1, f, M=24; for(int i=3; i<=M; i++) { f = f2; f2 = f1 + f2; f1 = f; System.out.println("第" + i +"个月的兔子对数: "+f2); } } } 【程序2】 题目:判断101-200之间有多少个素数,并输出所有素数。 程序分析:判断素数的方法:用一个数分别去除2到sqrt(这个数),如果能被整除, 则表明此数不是素数,反之是素数。 public class lianxi02 { public static void main(String[] args) { int count = 0; for(int i=101; i<200; i+=2) { boolean b = false; for(int j=2; j<=Math.sqrt(i); j++) { if(i % j == 0) { b = false; break; } else { b = true; } } if(b == true) {count ++;System.out.println(i );} } System.out.println( "素数个数是: " + count); } } 【程序3】 题目:打印出所有的 "水仙花数 ",所谓 "水仙花数 "是指一个三位数,其各位数字立方和等于该数本身。例如:153是一个 "水仙花数 ",因为153=1的三次方+5的三次方+3的三次方。 public class lianxi03 { public static void main(String[] args) { int b1, b2, b3;
上传时间: 2017-12-24
上传用户:Ariza