搜索资源列表
fs
- 试写一算法,如果三个整数x,y,z的值是依次非递增的,侧通过交换令其为非递增。 要求实现下列函数: void Descend(int &x, int &y, int &z) /* 按从大到小顺序返回x,y和z的值 */
ADS1100ok!
- 这个是一个用Keil C51编写的16位串行AD芯片ADS1100的驱动程序示例,程序中含有写好的ADS1100.H标准驱动函数和LCD1602.H液晶驱动函数,用51模拟IIC总线进行数据采集。提供API式外部函数接口:void Init_ads1100(unsigned char mdata) unsigned int Rd_ads1100(void) 具体功能见程序中的*.C测试文件。
4
- 学会对文件的记录锁定,及解锁。#include <stdio.h> #include <unistd.h> #include <fcntl.h> int main() { int fd int i struct { char name[20] uint ID int age } myrec fd =open(\"name\", O_RDWR|O_CREAT, 0755)
input_output_image
- preprocessing for image quantization. This file include: void get_bmp() void put_bmp() void float_to_unchar() void unchar_to_float() void get_QT() void quantization_constraint()
image_spatial_process
- image preprocessing for JPEG compression. This file include: void filter2() void get_8x8() void set_8x8() void sym_extension() void zero_extension() void peri_extension() void get_middle()
DCT_transform
- This file include the DCT and IDCT transform of an image. void show_DCT( void ) void DCT_8x8( float* data ) void IDCT_8x8( float* data ) void BDCT( float* input,int rows,int cols ) void BIDCT( float* input,int rows,int cols ) void get_8x8
image_process
- This file include some image process program: void ImResize(IMAGEDATA *pRtImg, IMAGEDATA *pSrImg, int nFixSize) bool CalMoments(float Moments[7], IMAGEDATA *pSrImg) void RGB2Gray(IMAGEDATA *pRtImg, IMAGEDATA *pSrImg) void Im2Bw(IMAGEDATA *pR
floatingdustser
- 将运算的结果(浮点数)存入eeprom中。我们知道,浮点数在c语言中是以ieee格式存储 的,一个浮点数占用四个字节,例如浮点数34.526存为(160,26,10,66)这四个数。要 将一个浮点数存入eeprom,实际上就是要存这四个数。那么如何在程序中得到一个浮点数的 组成数呢? 浮点数在存储时,是存储连续的字节中的,只要设法找到存储位置,就可以得到这些数了。 可以定义一个void的指针,将此指针指向需要存储的浮点数,然后将此指针强制转化为char型,这样,利用指针
key
- 矩阵键盘驱动程序, unsigned char key(void) 只要调用这个函数即可实现
2410uart
- void __irq Uart0_TxInt(void) void __irq Uart0_RxIntOrErr(void) void __irq Uart0_TxDmaDone(void) void __irq Uart0_R xDmaOrErr(void) void __irq Uart0_TxFifo(void) void __irq Uart0_RxFifoOrErr(void) void __irq Uart0_AfcTx(void) void
cmm
- 简单C编译器生成的目标代码是8086的汇编代码(16位),可以在一般的PC上被像MASM之类的汇编编译程序编译,生成可执行文件后,在DOS或Windows控制台下运行。 实现的语言定义如下: 语言类似于tiny语言,不支持过程调用,也就是只有一个main函数,无其他函数和全局变量 基本语句:注释语句(/*…*/),输入语句(int input(void) ),输出语句(void output(int) ),赋值语句。这里的输入输出语句实际上类似于函数调用,可以看作是本语言内部的函数
label
- 一个可以改变static文本框字体、大小、颜色的类 enum FlashType {None, Text, Background } class CLabel : public CStatic { // Construction public: CLabel() CLabel& SetBkColor(COLORREF crBkgnd) CLabel& SetTextColor(COLORREF crText) CLabel& SetTex
config
- 一个读写注册表的类 #ifndef __SYS_CONFIG_H__ #define __SYS_CONFIG_H__ #ifndef __COMMONFUNC_INCLUDE__ #define __COMMONFUNC_INCLUDE__ #endif class CConfig { public: CConfig() ~CConfig() void Load() void Save() CStr
list
- 生成一个单向链表(*pListHead) 用C中的结构体或C++中的类实现 完成基本要求 基本算法要求: 实现对链表的逆序 void reverse(CList& ); 查找链表倒数第k个元素 FindFBack(CList&, int k); 高要求: 对链表排序 order(CList&); 判断单向链表是否有环
drawcircle
- if(e.getActionCommand()==\"参数法画圆\"){ p=11 } } //actionPerformed //实现接口WindowListener的所有方法,用于处理发生在窗口上的事件 public void windowClosing(WindowEvent e)
Gauss
- void Gauss() /*高斯消去法是解线性方程组的一个方法,这里用列主元消去法*/
baseCla
- 利用虚函数手段,按照三种不同的数据存储方式及其处理方法来实现如下的所谓“反序输出问题”:从键盘输入n 个int 型数据先存储起来(具体n 值由用户从键盘输入),而后再按照与输入相反的顺序将这些数据显示在屏幕上。具体地说,可通过在基类baseCla 及其派生类method1Cla、method2Cla 和method3Cla中说明如下的同一个虚函数“virtual void reverseout() ”,来实现所述问题的三种不同处理方法。例如,可设计并使用已经在第四章和第六章的实践题中所使用的数据
VIPSHELL2007
- VipShellServer 是服务端程序。 VipShellServer.cpp 连接的地址在 void CVipShellServer::Test() { //.. WORD wVersionRequested = MAKEWORD(1, 1) WSADATA wsaData WSAStartup(wVersionRequested, &wsaData) // CreateThread(0,0,Thread,0,0,0) Start(
ch1
- 数据结构代码,关于数据结构的实验一 void main() { timeb t1,t2 long t double x,sum=1,sum1 int i,j,n printf(\"请输入x n:\") scanf(\"%lf%d\",&x,&n) ftime(&t1) // 求得当前时间 for(i=1 i<=n i++) { sum1=1 for(j=1 j<=i j++)
ch10
- 数据结构(严慰敏)配套纯c代码实验十 typedef int InfoType // 定义其它数据项的类型 typedef int KeyType // 定义RedType类型的关键字为整型 struct RedType // 记录类型(同c10-1.h) { KeyType key // 关键字项 InfoType otherinfo // 其它数据项 } typedef char KeysType // 定义关键字类型为字符型 #incl