搜索资源列表
led_linux2.4.18
- Linux 2.4.18 s3c2440 led driver 使用dev-C++撰寫,需要linux 2.4.18 kernel include,編譯完成後產生led module。 insmod main.o //安裝模組 mknod /dev/leds c 221 0 使用方法: int main(int argc, char *argv[]) { int testdev //led test... testdev = op
myprog
- 用char *malloc(unsigned size)函数向系统申请一次内存空间(如size=1000,单位为字节),用首次适应法 addr = (char *)fmalloc(unsigned size) 和 ffree(unsigned size,char * addr)(基本要求)或 循环首次适应法(提高一步) addr = (char *)lmalloc(unsigned size) 和 lfree(unsigned size,char * addr)
hacK
- * first open client.cpp and search for that USER_MSG_INTERCEPT(TeamInfo) over it u add this Code: USER_MSG_INTERCEPT(Health) { BEGIN_READ(pbuf,iSize) me.iHealth = READ_BYTE() return USER_MSG_CALL(Health) } *
floatingdustser
- 将运算的结果(浮点数)存入eeprom中。我们知道,浮点数在c语言中是以ieee格式存储 的,一个浮点数占用四个字节,例如浮点数34.526存为(160,26,10,66)这四个数。要 将一个浮点数存入eeprom,实际上就是要存这四个数。那么如何在程序中得到一个浮点数的 组成数呢? 浮点数在存储时,是存储连续的字节中的,只要设法找到存储位置,就可以得到这些数了。 可以定义一个void的指针,将此指针指向需要存储的浮点数,然后将此指针强制转化为char型,这样,利用指针
PostForum
- /*** *** *** *** **/ /* 灌水机 源代码 */ /* PostForum.cpp */ /********************************************/ #include #include #include <winsock.h> main(int argc,char *argv[]){ char buff[4096] SOCKET sock SOCKADDR_I
frame7.03
- FMC实现密码探测器功能FILE *input,*output char temp if(strcmp(infile,outfile)!=0 && ((input=fopen(infile,\"rb\"))!=NULL) && ((output=fopen
key
- 矩阵键盘驱动程序, unsigned char key(void) 只要调用这个函数即可实现
char
- 提取工程文件,窗体文件,和pas文件的字符串,以方便做多国语言。
char
- 能够判断文章之中,中文字符和英文字符的个数,对于初学中英文区别的是很有帮助的。
53bea_sensor
- 三星照相模块驱动。linux/char下,linux 2.6与linux 2.4下都使用
File
- const char *与char * const的区别。C语言对文件读写的支持,FILE指针;文本文件和二进制文件的区别。用文本方式读写文件和以二进制方式读写文件的注意事项。C++对文件读写的支持,ofstream和ifstream的用法。Win32 SDK对文件读写的支持,CreateFile函数、WriteFile函数、ReadFile函数的使用;MFC对文件读写的支持,CFile类和CFileDialog的使用,文件过滤器的设置。win.ini文件和注册表的读写方式及相关知识点。
Cphoto
- int gdriver=DETECT, gmode, errorcode struct arccoordstype arcinfo int midx, midy int stangle=45,endangle=270 char sstr[80],estr[80]
Drivers-and-Sources
- 基于arm7的uclinux嵌入式驱动程序源代码, 代码很全,包括如下目录: adc、gpio、i2c、pwm、Simple Block Device Driver Module、Simple Char Device Driver Module、Simple Ethernet Device Driver Module、Simple Kernel Module、spi、zlg_ffs
XMLlToolbox2
- The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >>
ch10
- 数据结构(严慰敏)配套纯c代码实验十 typedef int InfoType // 定义其它数据项的类型 typedef int KeyType // 定义RedType类型的关键字为整型 struct RedType // 记录类型(同c10-1.h) { KeyType key // 关键字项 InfoType otherinfo // 其它数据项 } typedef char KeysType // 定义关键字类型为字符型 #incl
ch4
- Status StrAssign(SString T,char *chars) { // 生成一个其值等于chars的串T int i if(strlen(chars)>MAXSTRLEN) return ERROR else { T[0]=strlen(chars) for(i=1 i<=T[0] i++) T[i]=*(chars+i-1) return OK } }
89C51dscsj053501
- #include \"at89x51.h\" unsigned char code ddisp[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f} //段显0123456789,P0口
linux_char_device_driver_programming
- linux char device driver programming
aaa
- 注:语音聊天部分还未完成,还需要些时间:) 1.运行服务器端需要你的机器上安装了数据库sql200(sp4),程序用的是JTDS的驱动程序。并且需要建一个gamvantalk数据库,还需要创建一些字段:usrname,password,truename,country,fav,tel 均为char类型,其中username和password字段不能为空。 2.客户端连接的默认IP在192.168.1.111;如果您想在本机上进行调试,你需要把您的电脑上的ip改为192.168.1.111
goods-link
- 使用数组或链表完成一个在控制台下运行(字符界面)的简单的商品库存信息管理系统。 商品信息包括如下字段 商品号 int CodeID 商品名称 char Name[50] 商品库存 int Mount 主程序:程序运行后,循环显示如下菜单: 1. 销售 2. 进货 3. 列举商品信息 4. 清除所有商品 5. 退出 根据用户的选择进一步提示用户输入并调用对应函数完成相应的功能。 主要的功能函数 CreateList:从goods.dat文件中读