虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

q-Function

  • Visual Basic 6.0可以通过调用API函数格式化一个磁盘

    Visual Basic 6.0可以通过调用API函数格式化一个磁盘,无论是软盘还是硬盘。 打开一个新的项目(工程1) ,如果你没有更改过缺省模式,那么Visual Basic 6.0会自动添加一个form1文件,在form1上添加一个命令控件,将下面的代码拷入。 Option Explicit Private Declare Function SHFormatDrive Lib"shell32"( ByVal Hend AS Long,ByVal Drive AS Long,ByVal FormatID AS Long,ByVal Options AS Long) as Long Private Sub FormatDisk(intDrive as integer,blnQuickFormat as Boolean) dim lngReturn As Long if (blnQuickFormat) then lngReturn= SHFormatDrive(0,intDrive,0&,1&) else lngReturn= SHFormatDrive(0,intDrive,0&,0&) end if end Sub Private Sub Command1_Click() call FormatDisk(0,True) End Sub 运行此程序。 注意FormatDisk函数的第一个变量很重要,他的值是0,1,2时代表格式化的分别是:A、B、C盘。

    标签: Visual Basic 6.0 API

    上传时间: 2015-10-05

    上传用户:kytqcool

  • This thesis has recommended mainly systematic design and simulation of the bank ATM (ATM ) realize t

    This thesis has recommended mainly systematic design and simulation of the bank ATM (ATM ) realize the course, and has introduced each function module of this system in detail , including deposit and withdraw, transfer accounts, inquire about, revise the concrete course that realize in password and concrete course that realizes of the module

    标签: recommended systematic simulation ATM

    上传时间: 2015-10-06

    上传用户:yzhl1988

  • C# BigInteger class. BigInteger.cs is a csharp program. It is the BIgInteger class. It has methods:

    C# BigInteger class. BigInteger.cs is a csharp program. It is the BIgInteger class. It has methods: abs() , FermatLittleTest(int confidence) ,gcd(BigInteger bi) , genCoPrime(int bits, Random rand) , genPseudoPrime(int bits, int confidence, Random rand) , genRandomBits(int bits, Random rand) , isProbablePrime(int confidence) , isProbablePrime() , Jacobi(BigInteger a, BigInteger b) , LucasSequence(BigInteger P, BigInteger Q, BigInteger k, BigInteger n) ,max(BigInteger bi) , min(BigInteger bi) , modInverse(BigInteger modulus) , RabinMillerTest(int confidence) ,

    标签: BigInteger class BIgInteger program

    上传时间: 2013-12-23

    上传用户:ynzfm

  • 按(F1)键显示(Choice)下拉菜单的功能选项

    按(F1)键显示(Choice)下拉菜单的功能选项,内有五个选择,本人连接了3个功能,它们分别是:appg1(实现显示一个数字的方阵,程序中的清屏功能可将上次运行的结果清除,重新显示下次运行结果);appg2(打字练习的程序,系统按回车键出现由26个字母组成的乱序行,这时其中任一字母落下,在键盘上敲入该字母,如果输入正确,字母消失);appg3(一个动画程序,它是一个方框向中间由大变小,并留下痕迹,然后出现一个心,按空格重复出现心,按其他键将重复,按Q键退出的程序);appg4(还未实现任何功能);Exit(退出系统)。 按(F10)键则显示帮助文件,帮助文件包括本人学号和菜单简介。 同时菜单能显示系统当前的日期。

    标签: Choice 菜单

    上传时间: 2014-01-24

    上传用户:龙飞艇

  • 这是一个字母或数制之间的转化程序

    这是一个字母或数制之间的转化程序,5为主模块,调用模块1和模块7 模块1又调用模块2、3、4和6四个模块,其中:   模块2实现小写字母向大写字母的转换 模块3实现大写字母向小写字母的转换 模块4实现二进制数向十六进制数的转换 模块6实现十六进制数向二进制数的转换 模块7实现十六进制数向十进制数的转换 按“q”键退出。 使用时,需将7个文件分别汇编,连接的方法为: 5+1+2+3+4+6+7 生成可执行文件“5” 即可运行。

    标签: 字母 数制 转化 程序

    上传时间: 2015-10-11

    上传用户:zhuoying119

  • BCH中的组件

    BCH中的组件,模Q加、多项式乘法电路、除法电路

    标签: BCH

    上传时间: 2014-12-21

    上传用户:qoovoop

  • alien 外星人

    alien 外星人,很简单的动画;不过外星人的样子很Q,

    标签: alien

    上传时间: 2013-12-15

    上传用户:牛布牛

  • crc任意位生成多项式 任意位运算 自适应算法 循环冗余校验码(CRC

    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,则认为没有错误,否则认为有错

    标签: crc CRC 多项式 位运算

    上传时间: 2014-01-16

    上传用户:hphh

  • Some algorithms of variable step size LMS adaptive filtering are studied.The VS—LMS algorithm is imp

    Some algorithms of variable step size LMS adaptive filtering are studied.The VS—LMS algorithm is improved. Another new non-linear function between肛and e(/ t)is established.The theoretic analysis and computer simulation results show that this algorithm converges more quickly than the origina1.Furthermore,better antinoise property is exhibited under Low—SNR environment than the original one.

    标签: algorithms LMS algorithm filtering

    上传时间: 2014-01-23

    上传用户:yxgi5

  • 代入法的启发示搜索 我的代码实现是:按照自然语言各字母出现频率的大小从高到低(已经有人作国统计分析了)先生成一张字母出现频率统计表(A)--------(e),(t,a,o,i,n,s,h,r),(

    代入法的启发示搜索 我的代码实现是:按照自然语言各字母出现频率的大小从高到低(已经有人作国统计分析了)先生成一张字母出现频率统计表(A)--------(e),(t,a,o,i,n,s,h,r),(d,l),(c,u,m,w,f,g,y,p,b),(v,k,j,x,q,z) ,再对密文字母计算频率,并按频率从高到低生成一张输入密文字母的统计表(B),通过两张表的对应关系,不断用A中的字母去替换B中的字母,搜索不成功时就回退,在这里回朔是一个关键。

    标签: 字母 频率 搜索 代码

    上传时间: 2015-10-24

    上传用户:wanqunsheng