先创建文本文件IN.DAT,在文件中写20个四位整数。 编写函数readDat()把从文件中读出这些数并存入数组a中;编写函数Calvalue( ), 其功能要求: 1. 求出这文件中共有多少个正整数totNum 2. 求这些数右移1位后, 产生的新数是偶数的数的个数totCnt, 以及满足此条件的这些数(右移前的值) 的算术平均值totPjz。 最后在Main( )函数中把所求的结果输出。
上传时间: 2017-06-30
上传用户:Breathe0125
Launch Matlab by either clicking twice on the Matlab icon on your desktop or by selecting: Start Programs Matlab Matlab. The Main window is the MATLAB Command Window, where you write your instructions.
标签: Matlab selecting clicking desktop
上传时间: 2017-06-30
上传用户:aa17807091
huffman coding and decoding adaptive huffman coding and decoding it is a assignment from my course and code is Main-c decode is Main-e hope it is useful for everybody
标签: decoding huffman coding assignment
上传时间: 2017-07-07
上传用户:nairui21
This project is developed for school management system in vb and sql server 2000. All source code includes database is present.The Main functions of this software are fees managment,employees managment,student attendance,result and reports developed in vb.
标签: management developed project school
上传时间: 2017-07-08
上传用户:270189020
This project is to design the automated system for the inventory of Al-Ahmad Cotton and Oil Mills situated at Vehari road, Multan. It is difficult to keep the track of sale purchase and production system of any company, department or organization. It is decided to computerize the sale purchase and production system of Al-Ahmad Cotton and Oil Mill. All the difficulties faced by manual work are considered during the development o this project.Main used tool in vb and sql server 2000...........
标签: automated inventory the Al-Ahmad
上传时间: 2013-12-22
上传用户:qq1604324866
用SHA算法实现对任意文件的hash摘要,并且把hash摘要值(至少为160bit)存入另一个文件,形如: hash inputfile hashvaluefile 说明:SHA算法的实现至少为160bit,或者可以选择256,384或者512的,可以查阅相关资料,按照标准来实现(hash的算法是否正确,可以和网上的标准算法对比,用相同的输入看是否能够得到相同的输出)控制台编程: int Main(int argc, char *argv[ ])
上传时间: 2017-07-11
上传用户:cursor
10个JAVA实例本书全部代码全部在JDK中调试成功,因此一般可在其他开发工具中使用。 注意有些实例只提供了部分模块,因此运行时需要添加其他代码。 光盘中的.java文件可以用任何文本编辑器打开。如果要执行,则使用如下方法: 使用jdk: 编译所有文件,然后仅执行一次有Main的文件。 使用jb: 若已有一个空工程存在,则将所需文件添加到工程(jb9版本)中,然后按F9键。
上传时间: 2013-12-25
上传用户:jcljkh
C编写,实现字符串摘要、文件摘要两个功能。 里面主要包含3个文件: Md5.cpp、Md5.h、Main.cpp。其中Md5.cpp是算法的代码,里的代码大多是从 rfc-1321 里copy过来的;Main.cpp是主程序。
标签: 编写
上传时间: 2014-11-04
上传用户:冇尾飞铊
In this work an implementation of a geometric nonlinear controller for chaos synchronization in a Field Programmable Gate Array (FPGA) is presented. The Lorenz chaotic system is used to show the implementation of chaos synchronization via nonlinear controller implemented in a Xilinx FPGA Virtex-II 2v2000ft896-4. The Main idea is to design a nonlinear geometric controller which synchronizes a slave Lorenz system to a master system and then implement them into the FPGA.
标签: synchronization implementation controller geometric
上传时间: 2013-12-17
上传用户:3到15
分别定义图形类Shape(抽象基类),继承类矩形类Rectangle、正方形类Square、 圆形类Circle;并且计算周长和面积。在另一个Main函数中分别创建矩形、 正方形和圆形对象,设置所需的属性值,打印其周长和面积。(备注:只要把该文件解压,把里面的东东COPY去即可使用)
上传时间: 2017-07-25
上传用户:wuyuying