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

null-terminated

  • 先序遍历非递归算法 #define maxsize 100 typedef struct { Bitree Elem[maxsize] int top }SqStack void PreOrderUn

    先序遍历非递归算法 #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

    标签: maxsize PreOrderUn SqStack typedef

    上传时间: 2014-01-26

    上传用户:hewenzhi

  • 这是一个好用的MD5的C++类;这个类可以加在控制台 程序中也可用在MFC中

    这是一个好用的MD5的C++类;这个类可以加在控制台 程序中也可用在MFC中, 并且提供了详细的错误处理 函数,是一个安全的类。例程是一个MD5的MFC程序, 支持字符串和文件两种输入。 LPCSTR TargetFile(char *filename=NULL) //计算文件的MD5值 void TargetStr(LPCSTR str) //计算字符串的MD5值 LPCSTR GetDigestKey() //取MD5运算后的结果 LPCSTR GetErr() //如果有错误,取错误字串

    标签: MD5 MFC 控制台 程序

    上传时间: 2015-04-04

    上传用户:拔丝土豆

  • java 100例子 import javax.swing.JOptionPane //调用method class c { //定义名字 public static void

    java 100例子 import javax.swing.JOptionPane //调用method class c { //定义名字 public static void main(String[] args) { //开始method JOptionPane.showMessageDialog( null, "错误" ) //显示一条信息 System.exit(0) // 结束程序 } //结束method } //结束class

    标签: JOptionPane import method public

    上传时间: 2015-05-18

    上传用户:gengxiaochao

  • 数字运算

    数字运算,判断一个数是否接近素数 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

    标签: 数字 运算

    上传时间: 2015-05-21

    上传用户:daguda

  • This structure defines the interface between the low-level tty driver and the tty routines. The foll

    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.

    标签: the structure interface low-level

    上传时间: 2015-05-29

    上传用户:yyyyyyyyyy

  • * Function: * 1. Replace the first oldstr with newstr in srcstr * Arguments: * IN : * srcst

    * 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.

    标签: Arguments Function Replace oldstr

    上传时间: 2014-12-20

    上传用户:Yukiseop

  • This Program Is Designed To Simulate A Spatial Antenna Array System Working On The MUSIC Algorith

    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 .

    标签: Designed Algorith Simulate Program

    上传时间: 2014-01-02

    上传用户:三人用菜

  • //打开 USB 口读写, 由驱动程序的 Pipe 名确定 HANDLE hPipe = OpenMyDevPipe("MyPipe1") //驱动程序里面的 Pipe 名, 对应访问某个端点

    //打开 USB 口读写, 由驱动程序的 Pipe 名确定 HANDLE hPipe = OpenMyDevPipe("MyPipe1") //驱动程序里面的 Pipe 名, 对应访问某个端点的 I/O, 这里我乱写的, 需要与驱动一致 if(hPipe != INVALID_HANDLE_VALUE) //打开 Pipe 成功 { ReadFile(hPipe, Buffer, BufSize, &nBytesRead, NULL) //从 hPipe 里读取数据到 Buffer 里 //WriteFile(hPipe, Buffer, BytesToWrite, &nBytesWritten, NULL) //把 Buffer 里面的 BytesToWrite 字节写入 hPipe CloseHandle(hPipe) } //使用 DeviceIoControl 访问 USB 设备 HANDLE hDevice = OpenMyDevice() if(hDevice != INVALID_HANDLE_VALUE) //打开设备成功 { //这些 DeviceIoControl 功能都是由设备定义的, 具体看设备和驱动的资料 if(DeviceIoControl(hDevice, IOCTL_READ_xxxx, &IOBlock, sizeof(IOBLOCK), &c, 1, &nBytes, NULL)) { //成功 } CloseHandle(hDevice) }

    标签: Pipe OpenMyDevPipe MyPipe1 HANDLE

    上传时间: 2014-11-25

    上传用户:stampede

  • This sample demonstrates how to take pictures and videos using the CameraCaptureDialog managed AP

    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.

    标签: CameraCaptureDialog demonstrates pictures managed

    上传时间: 2013-12-15

    上传用户:kikye

  • 本程序中得到的收端OFDM信号的频谱波形

    本程序中得到的收端OFDM信号的频谱波形,是与其发端信号的排步有关的。在发端的 % 载波安排上,128个载波有前后各32个载波是null载波(如果这前后各32各载波是带外频段, % 那么理论上它们都应该是零!),中间的64个载波是数据载波。这样的排步很明显就是一个 % 两边低,中间高的频谱形式。所以,收端也应该是这个轮廓。

    标签: OFDM 程序 信号 波形

    上传时间: 2015-11-02

    上传用户:372825274