Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - const.h
Search - const.h - List
C++ Base64编码/解码源代码 inline int Base64Encode(char * base64code, const char * src, int src_len = 0) inline int Base64Decode(char * buf, const char * base64code, int src_len = 0) 以上两个函数内联定义在base64.h中,使用时include \"base64.h\" 即可,编码后的长度一般比原文多占1/3的存储空间,为了效率,程序并没有检查目标存储区是否溢出,请保证有足够的存储空间。 -C Base64 encoding / decoding source code inline int Base64Encode (char * base64code, const char * src, int src_len = 0) inline int Base64Decode (char * buf, base64code const char *, int src_len = 0) over two letters few within the definition in conjunction base64.h, when used include "base64.h" can, coding the original length generally occupy more than 1 / 3 of storage space, in order to efficiency, procedures and did not check whether the target storage areas overflow, please ensure that there is sufficient storage space.
Date : 2008-10-13 Size : 5.45kb User : 王晓名

DL : 0
冒泡排序 直接选择排序 Shell排序 快速排序 归并排序 堆排序 直接插入排序基本算法 #include<iostream.h> #include<stdlib.h> #include<time.h> const int n=100000 typedef struct{ int key }RedType typedef struct{ RedType *r //r[n+1] int length }SqList int random() void InsertSort(SqList &L) void main(){ SqList L L.r = new RedType[n+1] L.length=n for(int i=1 i<=n i++) L.r[i].key=random() long t1,t2 t1=clock() InsertSort(L) t2=clock() cout<<\" 时间: \"<<float(t2-t1)/CLK_TCK<<endl } -Bubble Sort direct selection Shell Ranking Ranking Ranking Rapid Merging Sort Heap Sort basic ordering directly inserted Algorithm # include
Date : 2008-10-13 Size : 703.68kb User : zero

#include \"pch.h\" #include \"base64.h\" NAMESPACE_BEGIN(CryptoPP) static const int MAX_LINE_LENGTH = 72 static const byte vec[] = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\" static const byte padding = = Base64Encoder::Base64Encoder(BufferedTransformation *outQueue, bool insertLineBreak) : insertLineBreak(insertLineBreak), Filter(outQueue) { inBufSize=0
Date : 2008-10-13 Size : 297.98kb User : 扛的子

一个简单的FTP的源码 编译环境:VC6.0. 编译方法:编译前先将本机上的VC98文件夹下的winsock.h搜索到并删除, 然后开始编译,并将windows.h文件中的以下语句删除: #else #include<winsock.h> 最后编译就可以通过了。 使用方法:将本工程const.h文件中的相应设置进行更改,就可以用leapftp进行连接了 (目前尚不能支持其他的ftp客户端软件)
Date : 2008-10-13 Size : 15.58kb User : Alex Zhou

复数运算#include<iostream.h> class Complex { public: Complex( double r =0, double i =0 ) Complex(int a) { Real = a Image = 0 } void print() const friend Complex operator+ ( const Complex & c1, const Complex & c2 ) friend Complex operator- ( const Complex & c1, const Complex & c2 ) friend Complex operator- ( const Complex & c ) private: double Real, Image }
Date : 2008-10-13 Size : 810byte User : 伍国

应用于ucGUI的16*16点阵字库文件 只要将该文件加入ucGUI的工程中, 再在GUI.H中如下声明: extern const GUI_FONT GUI_Font6x8 ...... extern const GUI_FONT GUI_Font_HZ16x16 //汉字字体 即可使用. 使用实例: static void DemoHZ(void) { const char str[] = GUI_UC_START\"中国人民万岁\"GUI_UC_END /* Set ShiftJIS font */ GUI_SetFont(&GUI_Font_HZ16x16) GUI_DispString(str) }-used ucGUI 16 * 16 character dot-matrix document as long as the document ucGUI to join the project, which GUI.H again in the following statement : extern const GUI_FONT GUI_Font6x8 ...... extern const GUI_FONT GUI_Font_HZ16x16 / / Chinese fonts can be used. examples of use : static void DemoHZ (void) (const char str [] = GUI_UC_START "Long live the Chinese people" GUI_UC_END / * Set ShiftJIS font * / GUI_SetFont (GUI_ Font_HZ16x16) GUI_DispString (str
Date : 2008-10-13 Size : 162.15kb User : 康康

H.264编码算法的完整源代码 文件:VideoEncoderX264.h class CVideoEncoderX264 : { public: CVideoEncoderX264(void); ~CVideoEncoderX264(void); virtual bool Connect(CVideoEnDecodeNotify* pNotify, const CVideoEnDecodeItem& Item); virtual void Release(void); virtual void Encode(BYTE* pInData, int nLen, BYTE* pOutBuf, int& nOutLen, int& nKeyFrame); private: x264_picture_t m_Pic; x264_t *h; x264_param_t param; void Flush(void);
Date : 2009-09-12 Size : 30kb User : lixh2009

DL : 0
/*PL/0编译系统C版本头文件pl0.h*/ /* typedef enum { false, true } bool; */ #define norw 13 /*关键字个数*/ #define txmax 100 /*名字表容量*/ #define nmax 14 /*number的最大位数*/ #define al 10 /*符号的最大长度*/ #define amax 2047 /*地址上界*/ #define levmax 3 /*最大允许过程嵌套声明层数[0,levmax]*/ #define cxmax 200 /*最多的虚拟机代码数*/ /*符号*/ enum symbol{ nul, ident, number, plus, minus, times, slash, oddsym, eql, neq, lss, leq, gtr, geq, lparen, rparen, comma, semicolon, period, becomes, beginsym, endsym, ifsym, thensym, whilesym, writesym, readsym, dosym, callsym, constsym, varsym, procsym, }; #define symnum 32 /*名字表中的类型*/ enum object{ constant, variable, procedur, }; /*虚拟机代码*/ enum fct{ lit, opr, lod, sto, cal, inte, jmp, jpc, }; #define fctnum 8 /*虚拟机结构代码*/ struct instruction { /*454*/ enum fct f; // 虚拟机代码指令 int l; //引用层与声明层的层次差 int a; //根据f的不同而不同 }; FILE * fas; //输出名字表 FILE * fa; //输出虚拟机代码 FILE * fa1; //输出源文件及其各行对应的首地址 FILE * fa2; //输出结果 bool listswitch; //显示虚拟机代码与否 bool tableswitch; //显示名字与否 char ch; //获取字符的缓冲区,getch使用 enum symbol sym; //当前的符号 char id[al+1]; //当前ident,多出的一个字节用于存放0 int num; //当前number int cc,ll; //getch使用的计数器,cc表示当前字符(ch)的位置 int cx; //虚拟机代码指针,取值范围[0,cxmax-1] char line[81]; //读取行缓冲区 char a[al+1]; //临时符号,多出的一个字节用于存放0 struct instruction code[cxmax]; //存放虚拟机代码的数组 char word[norw][al]; //保留字 enum symbol wsym[norw]; //保留字对应的符号值 enum symbol ssym[256]; //单字符的符号值 char mnemonic[fctnum][5]; //虚拟机代码指令名称 bool declbegsys[symnum]; //表示声明开始的符号集合 bool statbegsys[symnum]; //表示语句开始的符号集合 bool facbegsys[symnum]; //表示因子开始的符号集合 //名字表结构 struct tablestruct { char name[al]; //名字 enum object kind; //类型:const,var,array or procedure int val; //数值,仅const使用 int level; //所须层,仅const不能用 int adr; //地址,仅const不能用 int size; //需要分配的数据空间,仅procedure使用 }; struct tablestruct table[txmax]; //名字表 FILE * fin; FILE * fout; char fname[al]; int err; //错误计数器 //当函数中发生fatal error时,返回-1告知调用它的函数,最终退出程序 #define getsymdo if(-1==getsym()) return -1 #define getchdo if(-1==getch()) return -1 #define testdo(a,b,c) if(-1==test(a,b,c)) return -1 #define gendo(a,b,c) if(-1==gen(a,b,c)) return -1 #define expressiondo(a,b,c) if(-1==expression(a,b,c)) return -1 #define factordo(a,b,c) if(-1==factor(a,b,c)) return -1 #define termdo(a,b,c) if(-1==term(a,b,c)) return -1 #define conditiondo(a,b,c) if(-1==condition(a,b,c)) return -1 #define statementdo(a,b,c) if(-1==statement(a,b,c)) return -1 #define constdeclarationdo(a,b,c) if(-1==constdeclaration(a,b,c)) return -1 #define vardeclarationdo(a,b,c) if(-1==vardeclaration(a,b,c)) return -1 void error(int n); int getsym(); int getch(); void init(); int gen(enum fct x,int y ,int z); int test(bool *s1,bool *s2,int n); int inset(int e,bool *s); int addset(bool *str,bool * s1,bool * s2,int n); int subset(bool *str,bool * s1,bool * s2,int n); int mulset(bool *str,bool * s1,bool * s2,int n); int block(int lev,int tx,bool * fsys); void interpret(); int factor(bool * fsys,int * ptx,int lev); int term(bool * fsys,int * ptx,int lev); int condition(bool * fsys,int * ptx,int lev); int expression(bool * fsys,int * ptx,int lev); int statement(bool * fsys,int * ptx,int lev); void listcode(int cx0); int vardeclaration(int *ptr, int lev,int *ptx); int constdeclaration(int *ptr, int lev,int *ptx); int position(char * idt,int tx); void enter(enum object k,int * ptx,int lev, int * pdx); int base(int l,int * s,int b)
Date : 2010-09-13 Size : 24.55kb User : xqq771084591

C++ Base64编码/解码源代码 inline int Base64Encode(char * base64code, const char * src, int src_len = 0) inline int Base64Decode(char * buf, const char * base64code, int src_len = 0) 以上两个函数内联定义在base64.h中,使用时include "base64.h" 即可,编码后的长度一般比原文多占1/3的存储空间,为了效率,程序并没有检查目标存储区是否溢出,请保证有足够的存储空间。 -C Base64 encoding/decoding source code inline int Base64Encode (char* base64code, const char* src, int src_len = 0) inline int Base64Decode (char* buf, base64code const char*, int src_len = 0) over two letters few within the definition in conjunction base64.h, when used include "base64.h" can, coding the original length generally occupy more than 1/3 of storage space, in order to efficiency, procedures and did not check whether the target storage areas overflow, please ensure that there is sufficient storage space.
Date : 2025-07-16 Size : 5kb User : 王晓名

基于TMS320C6711的音频输入输出处理-based TMS320C6711 audio input and output processing
Date : 2025-07-16 Size : 12kb User : 王刚

用摄影测量的方法优化图像三维点坐标和相机的姿态参数-use of photogrammetry optimized images and three-dimensional coordinates of the camera parameters posture
Date : 2025-07-16 Size : 430kb User : shenminyi

一个简单的FTP的源码 编译环境:VC6.0. 编译方法:编译前先将本机上的VC98文件夹下的winsock.h搜索到并删除, 然后开始编译,并将windows.h文件中的以下语句删除: #else #include<winsock.h> 最后编译就可以通过了。 使用方法:将本工程const.h文件中的相应设置进行更改,就可以用leapftp进行连接了 (目前尚不能支持其他的ftp客户端软件)-A simple FTP source compiler environment: VC6.0. Compilers Methods: compiled before the first machine Vc98 this folder and delete winsock.h search, and then began to compile and document the following windows.h delete statement:# else# include <winsock.h> final compiler can be adopted. Usage: const.h this project will document the corresponding change settings, you can use to connect the leapftp (currently not yet support other ftp client software)
Date : 2025-07-16 Size : 15kb User : Alex Zhou

CCS下调试通过,基于5416DSP及aic23的语音采集并存储。-The adoption of CCS under the debugger, and 5416DSP-based voice aic23 collection and storage.
Date : 2025-07-16 Size : 421kb User : 张学

c++数据结构 ssd5的答案 很有用 保证正确 很有用 我亲自写的-#include "car.h" Car::Car(string plate) : license_plate(plate), moved(0), aisle(-1) {} Car::Car(string plate, int aisle) : license_plate(plate), moved(0), aisle(aisle) {} int Car::getTimesMoved(void) const { return moved } void Car::setTimesMoved(int m) { moved = m } int Car::getAisle(void) const { return aisle } string Car::getPlate(void) const { return license_plate } bool Car::operator < (const Car& rhs) const { return this->getPlate() < rhs.getPlate() } bool Car::operator == (const Car& rhs) const { return this->getPlate() == rhs.getPlate() }
Date : 2025-07-16 Size : 8kb User : linchen

//本程序利用CCP1模块实现一个“简易数字频率计”的功能 #include <pic.h> #include <stdio.h> #include <math.h> const char table[11]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0XD8,0x80,0x90,0xFF}; //不带小数点的显示段码表 -//CCP1 module for use in this process a " simple digital frequency meter" function# include <pic.h># Include <stdio.h># Include <math.h> const char table [11] = (0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0XD8, 0x80, 0x90, 0xFF) // without a decimal point display section of code table ~ ~ ~
Date : 2025-07-16 Size : 3kb User : mengchao

三次样条函数 Type coordinateX Y     x As Double     y As Double End Type Public Const dotSize = 25 Public Const H = 4000 Public Const W = 4-Cubic Spline
Date : 2025-07-16 Size : 1kb User : 刘明

此代码是SAR中回波信号产生,包括主函数main.c function.c 头文件变量头文件const.h funcDef.h parameter.h 和数据文件target_param.dat 非常适用于SAR回波仿真 -This code is SAR in the echo signal is generated, including the main function main.c function.c headers const.h funcDef.h parameter.h variable header files and data files target_param.dat Ideally suited for SAR Echo Simulation
Date : 2025-07-16 Size : 9kb User : vvalways

DL : 0
const.h: Macros for dealing with constants.
Date : 2025-07-16 Size : 1kb User : kddjmw

DL : 0
const.h: Macros for dealing with constants.
Date : 2025-07-16 Size : 3kb User : rdrfjb

功能:获取P43的AD值 //输入:P43口的模拟信号输入 (输入ADB和ADR,输出AD_Data_Hi和AD_Data_low) //输出:AD值 /////////////////////////////////////////////////////////;库 #include "SN8P2706A.h" // #include "const.h"(#include "SN8P2706A.h" // #include "const.h")
Date : 2025-07-16 Size : 7kb User : wangh
« 12 3 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.