这是一个图形变换的程序,按字母“Y”画一个用点组成的圆;按字母“S”画一 个用不同颜色填充的三角形;按字母“Z”画一个用不同颜色填充且带有边框图案 的矩形;按“q”键退出。
上传时间: 2016-04-30
上传用户:一诺88
输入四个点,判断此四点是否可形成一个平行四边形。 程序中描述了一个抽象数据类型Vector2D,表示一个向量。具有(x,y)两个值。其本身具有减另一个向量(minus(Vector2D)),判断自身是否为零向量(iszero()),与另一个向量对应值y,x乘积之差(inner(Vector2D))。由于两个向量平行,则乘积之差x1*y2-x2*y1=0。点A,B,C,D四点组成平行四边形的条件是AB//CD,BC//DA且各个向量皆不为零向量。 首先声明四个向量。向量i获得值的方法是由getPoint(int i)获得。然后根据Vector2D重载后的toString()函数将各个向量输出查看。最后判断此四点是否可组成平行四边行。
标签: 输入
上传时间: 2016-04-30
上传用户:qq521
/// /// /// ////1602驱动函数////////////////////////////////////// ////////////////////////////////////////////////////////////// // 函数原型:print(ucahr *string) // 输出字符串,超过16个字符时自动移入第二行 // printone(uchar x,uchar y,ucahr Data) // 在指定的位置(x,y)输出一个字符 // lcm_init(void) // 要调用本函数时,必须在main()初始化阶段调用 lcm_init() 初始化 1602
上传时间: 2014-12-07
上传用户:CHINA526
实现最优二叉树的构造;在此基础上完成哈夫曼编码器与译码器。 假设报文中只会出现如下表所示的字符: 字符 A B C D E F G H I J K L M N 频度 186 64 13 22 32 103 21 15 47 57 1 5 32 20 57 字符 O P Q R S T U V W X Y Z , . 频度 63 15 1 48 51 80 23 8 18 1 16 1 6 2 要求完成的系统应具备如下的功能: 1.初始化。从终端(文件)读入字符集的数据信息,。建立哈夫曼树。 2.编码:利用已建好的哈夫曼树对明文文件进行编码,并存入目标文件(哈夫曼码文件)。 3.译码:利用已建好的哈夫曼树对目标文件(哈夫曼码文件)进行编码,并存入指定的明文文件。 4.输出哈夫曼编码文件:输出每一个字符的哈夫曼编码。
上传时间: 2014-11-23
上传用户:shanml
使用AT指令发送Unicode的短信程序,VB6环境,使用WaveCom的Modem
上传时间: 2014-05-27
上传用户:yimoney
The Radio Interface Layer is the name for an interface that was developed especially for the Pocket PC Phone Edition. It is meant to abstract the interface with a phone/modem device. To achieve this it is closely modelled after the GSM AT command interface. Unfortunately the API was not published officially by Microsoft. Instead more high level API s were published that should be sufficient for developers. Again, unfortunately they are not sufficient. For example the API for receiving notification of incoming SMS messages is arranged for exclusively for one application per type of SMS. Apparently this will be improved upon in Pocket PC 2003. Another area is the availablity of a true AT command modem interface to interact with the GSM modem directly, which is also absent.
标签: especially Interface for developed
上传时间: 2013-12-02
上传用户:wff
弹簧隔振器的系数k0=4.5 hc=3.5 d=[3.15 3.23] a1=tan(pi*(d)./(2*hc)) a2=cot(pi*(d)./(2*hc)) % plot(d,a1) y=(a1+a2)*2*k0*hc*1e-3./pi y=y./9.8*8 % var=1+(tan(pi*(d+0.25)./(2*hc))).^2 k=2*k0*hc/pi*( var*pi./(2*hc)+var*pi./(2*hc)./(var-1
上传时间: 2013-12-02
上传用户:redmoons
做到在互连网的语音通信功能,使用g.729压缩,在 北京 -------- 重庆 间测试过,一端是长城宽带。一端是56k modem 拨号上网。语音比较清晰,但有一点停吨现象。
上传时间: 2016-05-15
上传用户:15071087253
LPC21XX系列开发板测试原代码,包括FLASH\电源管理\MODEM\KEY等驱动程序
上传时间: 2014-01-13
上传用户:kelimu
10/100M Fiber to Ethernet Media converter,tested is well for Fiber Optic application,good luck for you .
标签: Fiber application converter for
上传时间: 2016-05-26
上传用户:wanghui2438