查字典背单词系统,系统虽小,设计系统使用的知识点很多。 从结构化程序设计的角度来说,使用了结构化程序设计的三种基本结构:顺序结构,分支结构(简单分支、多分支、IF语句的嵌套调用),循环结构(步长型循环、扫描循环)。 从面向对象程序设计的角度来说,用到了各种对象:表单、表单集、标签控件、文本框控件、命令按钮控件、编辑框控件、选项按钮组控件、复选框控件、列表框控件、组合框控件、图象控件、计时器控件、表格控件。用到了以上控件的常用事件、属性和方法。多处用到了自定义属性和自定义方法,使用了表单参数的传递和表单结果的返回。 给出一个很好的随机数使用的实例,宏代换函数和类型测试函数应用,多处使用信息窗口和提示信息窗。
标签:
上传时间: 2013-12-18
上传用户:坏天使kk
crc任意位生成多项式 任意位运算 自适应算法 循环冗余校验码(CRC,Cyclic Redundancy Code)是采用多项式的 编码方式,这种方法把要发送的数据看成是一个多项式的系数 ,数据为bn-1bn-2…b1b0 (其中为0或1),则其对应的多项式为: bn-1Xn-1+bn-2Xn-2+…+b1X+b0 例如:数据“10010101”可以写为多项式 X7+X4+X2+1。 循环冗余校验CRC 循环冗余校验方法的原理如下: (1) 设要发送的数据对应的多项式为P(x)。 (2) 发送方和接收方约定一个生成多项式G(x),设该生成多项式 的最高次幂为r。 (3) 在数据块的末尾添加r个0,则其相对应的多项式为M(x)=XrP(x) 。(左移r位) (4) 用M(x)除以G(x),获得商Q(x)和余式R(x),则 M(x)=Q(x) ×G(x)+R(x)。 (5) 令T(x)=M(x)+R(x),采用模2运算,T(x)所对应的数据是在原数 据块的末尾加上余式所对应的数据得到的。 (6) 发送T(x)所对应的数据。 (7) 设接收端接收到的数据对应的多项式为T’(x),将T’(x)除以G(x) ,若余式为0,则认为没有错误,否则认为有错
上传时间: 2014-01-16
上传用户:hphh
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
标签: represented integers group items
上传时间: 2016-01-17
上传用户:jeffery
比快速排序更快的排序算法;这个了示例包含多种数据结构的算法,如InsertSort,ShellSort,BubbleSort,SelectSort,BinaryInsertSort,TableInsertSort,QuickSort,CoutingSort。对于每个算法用1万个数据比较排序性能,并且使用精确计时器(精度远远大于ms,到达us),使用正序,逆序,随机序列进行比较性能分析。
上传时间: 2013-12-18
上传用户:aeiouetla
java扫雷游戏 程序文件说明 文件 内容 备注 AboutFrame.java 程序“关于”对话框。 JCounter.java 计数器类。 有小位数3位,图形。 JMine.java 主程序类 JMineArth.java 地雷分布图算法类 JMineButton.java Jbutton的扩展类有行号、列号、标记标志和单击标志 StartJMine.java 程序入口点 WinFrame.java 胜利对话框,有易中难三个启动选项 StartJMine.bat 运行程序的批处理文件 说明: 1. 在java环境下,运行java StartJMine启动程序,或双击StartJMine.bat启动程序。程序框架都在JMine.java中。JMine.java 还包括两个线程类,分别为计时器线程和胜利后等待用户重起游戏的线程。 版权声明:例子版权归作者所有,遵循GPLv3许可开源发布,您可以自由使用。
标签: java AboutFrame JCounter 程序
上传时间: 2016-01-22
上传用户:大融融rr
用于体育比赛的数字秒表,计时器能显示 0.01s的时间,最长计时时间为 24h。
标签: 数字秒表
上传时间: 2016-02-14
上传用户:gyq
汇编时钟能实现时钟日历,能定时,计时器,能设置快慢
上传时间: 2016-03-06
上传用户:com1com2
avr单片机入门小程序,8mhz跑表计时器。
上传时间: 2016-04-15
上传用户:koulian
用游标的方法实现对称差的计算,即 (A-B)+(B-A)
上传时间: 2016-05-23
上传用户:远远ssad
单文档形式,画线功能,计时器画线功能,多线程画线功能
标签: 文档
上传时间: 2014-01-18
上传用户:hxy200501