先序遍歷非遞歸算法 #define maxsize 100 typedef struct { Bitree Elem[maxsize] int top }SqStack void PreOrderUnrec(Bitree t) { SqStack s StackInit(s) p=t while (p!=null !StackEmpty(s
標(biāo)簽: maxsize PreOrderUn SqStack typedef
上傳時(shí)間: 2014-01-26
上傳用戶:hewenzhi
這是一個(gè)好用的MD5的C++類;這個(gè)類可以加在控制臺(tái) 程序中也可用在MFC中, 并且提供了詳細(xì)的錯(cuò)誤處理 函數(shù),是一個(gè)安全的類。例程是一個(gè)MD5的MFC程序, 支持字符串和文件兩種輸入。 LPCSTR TargetFile(char *filename=NULL) //計(jì)算文件的MD5值 void TargetStr(LPCSTR str) //計(jì)算字符串的MD5值 LPCSTR GetDigestKey() //取MD5運(yùn)算后的結(jié)果 LPCSTR GetErr() //如果有錯(cuò)誤,取錯(cuò)誤字串
上傳時(shí)間: 2015-04-04
上傳用戶:拔絲土豆
java 100例子 import javax.swing.JOptionPane //調(diào)用method class c { //定義名字 public static void main(String[] args) { //開始method JOptionPane.showMessageDialog( null, "錯(cuò)誤" ) //顯示一條信息 System.exit(0) // 結(jié)束程序 } //結(jié)束method } //結(jié)束class
標(biāo)簽: JOptionPane import method public
上傳時(shí)間: 2015-05-18
上傳用戶:gengxiaochao
數(shù)字運(yùn)算,判斷一個(gè)數(shù)是否接近素?cái)?shù) A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no
上傳時(shí)間: 2015-05-21
上傳用戶:daguda
This structure defines the interface between the low-level tty driver and the tty routines. The following routines can be defined unless noted otherwise, they are optional, and can be filled in with a null pointer.
標(biāo)簽: the structure interface low-level
上傳時(shí)間: 2015-05-29
上傳用戶:yyyyyyyyyy
* Function: * 1. Replace the first oldstr with newstr in srcstr * Arguments: * IN : * srcstr * oldstr * newstr * OUT : * srcstr * Return: * 1. If find and replace one oldstr with newstr in srcstr , return 1 * 2. If find no oldstr in srcstr , return 0 * 3. If error (malloc return NULL) return -1 * Notes: * 1. srcstr should be large size enough.
標(biāo)簽: Arguments Function Replace oldstr
上傳時(shí)間: 2014-12-20
上傳用戶:Yukiseop
This Program Is Designed To Simulate A Spatial Antenna Array System Working On The MUSIC Algorithm For The Angle Of Arrival Estimation And Null Steering Algorithm For The Weights Estimation To The Required Output Radiation Pattern .
標(biāo)簽: Designed Algorith Simulate Program
上傳時(shí)間: 2014-01-02
上傳用戶:三人用菜
//打開 USB 口讀寫, 由驅(qū)動(dòng)程序的 Pipe 名確定 HANDLE hPipe = OpenMyDevPipe("MyPipe1") //驅(qū)動(dòng)程序里面的 Pipe 名, 對應(yīng)訪問某個(gè)端點(diǎn)的 I/O, 這里我亂寫的, 需要與驅(qū)動(dòng)一致 if(hPipe != INVALID_HANDLE_VALUE) //打開 Pipe 成功 { ReadFile(hPipe, Buffer, BufSize, &nBytesRead, NULL) //從 hPipe 里讀取數(shù)據(jù)到 Buffer 里 //WriteFile(hPipe, Buffer, BytesToWrite, &nBytesWritten, NULL) //把 Buffer 里面的 BytesToWrite 字節(jié)寫入 hPipe CloseHandle(hPipe) } //使用 DeviceIoControl 訪問 USB 設(shè)備 HANDLE hDevice = OpenMyDevice() if(hDevice != INVALID_HANDLE_VALUE) //打開設(shè)備成功 { //這些 DeviceIoControl 功能都是由設(shè)備定義的, 具體看設(shè)備和驅(qū)動(dòng)的資料 if(DeviceIoControl(hDevice, IOCTL_READ_xxxx, &IOBlock, sizeof(IOBLOCK), &c, 1, &nBytes, NULL)) { //成功 } CloseHandle(hDevice) }
標(biāo)簽: Pipe OpenMyDevPipe MyPipe1 HANDLE
上傳時(shí)間: 2014-11-25
上傳用戶:stampede
This sample demonstrates how to take pictures and videos using the CameraCaptureDialog managed API. If a default filename is used: - if a still picture is taken, the ".jpg" extension is appended to the default filename. (Otherwise the CameraCaptureDialog would throw an InvalidArgumentException). - if a video is recorded, null is passed to the CameraCaptureDialog as the default filename. The filename returned is then renamed to match the user entered filename while keeping the extension returned.
標(biāo)簽: CameraCaptureDialog demonstrates pictures managed
上傳時(shí)間: 2013-12-15
上傳用戶:kikye
本程序中得到的收端OFDM信號的頻譜波形,是與其發(fā)端信號的排步有關(guān)的。在發(fā)端的 % 載波安排上,128個(gè)載波有前后各32個(gè)載波是null載波(如果這前后各32各載波是帶外頻段, % 那么理論上它們都應(yīng)該是零!),中間的64個(gè)載波是數(shù)據(jù)載波。這樣的排步很明顯就是一個(gè) % 兩邊低,中間高的頻譜形式。所以,收端也應(yīng)該是這個(gè)輪廓。
上傳時(shí)間: 2015-11-02
上傳用戶:372825274
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1