先創(chuàng)建文本文件IN.DAT,在文件中寫20個四位整數(shù)。 編寫函數(shù)readDat()把從文件中讀出這些數(shù)并存入數(shù)組a中;編寫函數(shù)Calvalue( ), 其功能要求: 1. 求出這文件中共有多少個正整數(shù)totNum 2. 求這些數(shù)右移1位后, 產(chǎn)生的新數(shù)是偶數(shù)的數(shù)的個數(shù)totCnt, 以及滿足此條件的這些數(shù)(右移前的值) 的算術(shù)平均值totPjz。 最后在Main( )函數(shù)中把所求的結(jié)果輸出。
標(biāo)簽: Calvalue readDat DAT 函數(shù)
上傳時間: 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.
標(biāo)簽: 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
標(biāo)簽: 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.
標(biāo)簽: 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...........
標(biāo)簽: automated inventory the Al-Ahmad
上傳時間: 2013-12-22
上傳用戶:qq1604324866
用SHA算法實現(xiàn)對任意文件的hash摘要,并且把hash摘要值(至少為160bit)存入另一個文件,形如: hash inputfile hashvaluefile 說明:SHA算法的實現(xiàn)至少為160bit,或者可以選擇256,384或者512的,可以查閱相關(guān)資料,按照標(biāo)準(zhǔn)來實現(xiàn)(hash的算法是否正確,可以和網(wǎng)上的標(biāo)準(zhǔn)算法對比,用相同的輸入看是否能夠得到相同的輸出)控制臺編程: int Main(int argc, char *argv[ ])
上傳時間: 2017-07-11
上傳用戶:cursor
10個JAVA實例本書全部代碼全部在JDK中調(diào)試成功,因此一般可在其他開發(fā)工具中使用。 注意有些實例只提供了部分模塊,因此運行時需要添加其他代碼。 光盤中的.java文件可以用任何文本編輯器打開。如果要執(zhí)行,則使用如下方法: 使用jdk: 編譯所有文件,然后僅執(zhí)行一次有Main的文件。 使用jb: 若已有一個空工程存在,則將所需文件添加到工程(jb9版本)中,然后按F9鍵。
標(biāo)簽: JAVA JDK 代碼 調(diào)試
上傳時間: 2013-12-25
上傳用戶:jcljkh
C編寫,實現(xiàn)字符串摘要、文件摘要兩個功能。 里面主要包含3個文件: Md5.cpp、Md5.h、Main.cpp。其中Md5.cpp是算法的代碼,里的代碼大多是從 rfc-1321 里copy過來的;Main.cpp是主程序。
標(biāo)簽: 編寫
上傳時間: 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.
標(biāo)簽: synchronization implementation controller geometric
上傳時間: 2013-12-17
上傳用戶:3到15
分別定義圖形類Shape(抽象基類),繼承類矩形類Rectangle、正方形類Square、 圓形類Circle;并且計算周長和面積。在另一個Main函數(shù)中分別創(chuàng)建矩形、 正方形和圓形對象,設(shè)置所需的屬性值,打印其周長和面積。(備注:只要把該文件解壓,把里面的東東COPY去即可使用)
上傳時間: 2017-07-25
上傳用戶:wuyuying
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1