常用三极管的识别
上传时间: 2013-11-05
上传用户:cccole0605
题目:利用条件运算符的嵌套来完成此题:学习成绩>=90分的同学用A表示,60-89分之间的用B表示,60分以下的用C表示。 1.程序分析:(a>b)?a:b这是条件运算符的基本例子。
上传时间: 2015-01-08
上传用户:lifangyuan12
RSA算法 :首先, 找出三个数, p, q, r, 其中 p, q 是两个相异的质数, r 是与 (p-1)(q-1) 互质的数...... p, q, r 这三个数便是 person_key,接著, 找出 m, 使得 r^m == 1 mod (p-1)(q-1)..... 这个 m 一定存在, 因为 r 与 (p-1)(q-1) 互质, 用辗转相除法就可以得到了..... 再来, 计算 n = pq....... m, n 这两个数便是 public_key ,编码过程是, 若资料为 a, 将其看成是一个大整数, 假设 a < n.... 如果 a >= n 的话, 就将 a 表成 s 进位 (s
标签: person_key RSA 算法
上传时间: 2013-12-14
上传用户:zhuyibin
串行口是计算机一种常用的接口,具有连接线少,通讯简单,得到广泛的使用。常用的串口是RS-232-C接口(又称EIA RS-232-C)它是在1970年由美国电子工业协会(EIA)联合贝尔系统、调制解调器厂家及计算机终端生产厂家共同制定的用于串行通讯的标准。它的全名是"数据终端设备(DTE)和数据通讯设备(DCE)之间串行二进制数据交换接口技术标准"该标准规定采用一个25个脚的DB25连接器,对连接器的每个引脚的信号内容加以规定,还对各种信号的电平加以规定。传输距离在码元畸变小于4%的情况下,传输电缆长度应为50英尺。 Linux操作系统从一开始就对串行口提供了很好的支持,本文就Linux下的串行口通讯编程进行简单的介绍.
上传时间: 2013-12-16
上传用户:1079836864
AT89C2051中文技术资料,包括详细的引脚解释,用法,和编程注意事项。对初学单片机的人很有用的
上传时间: 2015-04-15
上传用户:520
使用ATtiny26芯片实现的PWM输出代码,是ATMEL公司提供的使用AVR系列芯片的硬件PWM引脚输出的一个典型范例。
上传时间: 2015-04-28
上传用户:shizhanincc
使用DSP2812,的事件管理器(EVB)产生的PWM波,输出在PWM11引脚,去控制直流电机速度。
上传时间: 2013-11-26
上传用户:xfbs821
数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no
上传时间: 2015-05-21
上传用户:daguda
ps2技术参考.讲鼠标技术的电子书 专业性强,协议+电路+引脚
上传时间: 2013-12-27
上传用户:wang0123456789
串口的仿真功能 完全支持 单步不支持 串口中断 用户可以使用 用户不能使用 定时器2 不占用 使用 P0,P2 口仿真 完全仿真 只能用作总线 89C52等嵌入式CPU仿真 支持 不支持 系统使用CPU 双CPU设计 单CPU 占用用户堆栈 2个字节 6个字节 I/O引脚占用 一条(p3.5) 两条(p3.0,p3.
上传时间: 2015-06-06
上传用户:klin3139