本程序运用C语言中结构化程序的思想,将程序分为函数模块的方法逐一实现。程序分为2个函数模块HUFFMAN(tree1)、HUFFMANCODE(code1,tree1),和主体函数Main;程序结构清楚,运行正常,正常实现哈夫曼编码。
上传时间: 2017-07-28
上传用户:lingzhichao
client socket include <sys/types.h> include <sys/socket.h> include <stdio.h> include <netinet/in.h> include <arpa/inet.h> include <unistd.h> int Main() { int sockfd int len struct sockaddr_in address int result char ch = A sockfd = socket(AF_INET, SOCK_STREAM, 0) address.sin_family = AF_INET address.sin_addr.s_addr = inet_addr("127.0.0.1") address.sin_port = 9734 len = sizeof(address) result = connect(sockfd, (struct sockaddr *)&address, len) if(result == -1) { perror("oops: client") exit(1) } write(sockfd, &ch, 1) read(sockfd, &ch, 1) printf("char from server = c\n", ch) close(sockfd) exit(0) }
上传时间: 2017-07-29
上传用户:wab1981
This C++ application demonstrates how to display Chinese characters from resource files. The application supports internationalization and localization. In the updated version also the context-sensitive help has been added. The application supports following languages: English, Taiwan Chinese, Taiwan English, HongKong Chinese, HongKong English, Mainland Chinese, and Mainland English. Main classes: TFontSpec, CCnvCharacterSetConverter
标签: demonstrates application characters resource
上传时间: 2014-01-09
上传用户:hakim
基于二发二收MIMO系统的半盲信道估计,其中Main为主程序,其它为子程序
上传时间: 2013-12-31
上传用户:duoshen1989
simple clock display clock Dimensions,Draw the circle and numbers,Formats the date ,Font for number ,Color of Main hands and dial,Color of second hand and numbers
标签: clock Dimensions the Formats
上传时间: 2014-11-24
上传用户:wanqunsheng
Its a project that i create. The program its like an helpdesk, that allows the user to introduce requests and manage them. The data is saved in .dat files and in .txt files. The Main file, the u should run is: n2006131015_Main
标签: that introduce helpdesk project
上传时间: 2013-12-07
上传用户:1159797854
是控制LED闪烁发光的简单例程。该程序实际上是实用工程模板Demo的一个应用,直接从Main( )函数开始编写。 在Main( )函数的前面,定义了LED所在的GPIO端口和管脚。在Main( )里,首先定义了一个变量ulClock,在调用函数clockInit( )时被初始化为当前的系统时钟频率,在后面对库函数SysCtlDelay( )调用时会用到该变量。 控制LED分3步走:调用函数SysCtlPeriEnable( )使能LED所在的GPIO模块,调用函数GPIOPinTypeOut( )配置LED所在的GPIO管脚为推挽输出,调用GPIOPinWrite( )对LED所在的GPIO管脚写0和写1实现LED闪烁发光的效果。
上传时间: 2014-01-27
上传用户:klin3139
This book is about writing TinyOS systems and applications in the nesC language. This chapter gives a brief overview of TinyOS and its intended uses. TinyOS is an open-source project which a large number of research universities and companies contribute to. The Main TinyOS website, http://www.tinyos.net, has instructions for downloading and installing the TinyOS programming environment. The website has a great deal of useful information which this book doesn’t cover, such as common hardware platforms and how to install code on a node.
标签: This applications language chapter
上传时间: 2017-09-04
上传用户:253189838
Description Combination of book reader and Web browsers. This program can be used for Web browsing, reading news sites, downloading and reading books and atricles from the Web. It is not implement all HTML browser functionality - it doesn t show images and is not able to proceed forms. The Main idea was to make it possible to view normal sites (not WAP sites) on very small screen of mobile phone. This application share a lot of code with MobiReader and first of all is inteded to be used to browse text data.
标签: Description Combination Web browsers
上传时间: 2013-12-16
上传用户:qweqweqwe
steppedchirp子函数产生一个子脉冲数为N的步进频信号,子脉冲为chirp信号,参数可在Main函数中设置,结果保存在数组y[]中。
标签: steppedchirp 函数 信号 脉冲
上传时间: 2017-09-12
上传用户:haohaoxuexi