Location:
Search - float char
Search list
Description: ergydfhgdfhggfhg 一.实验目的
二.实验内容
三、程序简要说明
原 文 : C语言词法分析器的设计与实现
一.实验目的:
1.强化对系统软件综合工程实现能力、规划能力的训练;
2.加强对词法分析原理、方法和基本实现技术的理解;
二.实验内容:
用C语言(或 C++ )作为宿主语言完成:
C语言(ANSI C或turbo C 2.0)词法分析器的设计和实现。
三、程序简要说明:
1、属性字说明:
共9种
KEYWORD: 关键字
\"auto\",\"break\",\"case\",\"char\",\"const\",\"continue\",
\"default\",\"do\",\"double\",\"else\",\"enum\",\"extern\",
\"float\",\"for\",\"goto\",\"if\",\"int\",\"long\",\"register\",
\"return\",\"short\",\"signed\",\"sizeof\",\"static\",\"struct\",
\"switch\",\"typedef\",\"union\",\"unsigned\",\"void\",
\"volatile\",\"while\",\"include\",\"define\"
共34个
详见IsKeyWord()函数
NUMBER: 数字
包括十进制整数,八进制整数,二进制整数,十六进制整数
还可返回几种错误
详见IsNumber()函数
CONSTANT: 常量
宏定义标识符,不识别C++关键字const,简单处理一层宏定义。
详见IsDefined()函数
......
关键词 : 计算机 编译原理 c语言 词法分析器-ergydfhg gfhg one. Experiment 2. Experiment 3, procedures brief description of the original : C language lexical analyzer Design and Implementation of a. The experiment : 1. To strengthen the integrated system software engineering, planning capacity of training; 2. Lexical analysis on principle, and basic understanding of the technology; 2. Experiment : C (or C) as the host language completed : C language (ANSI C or Turbo C 2.0) lexical analyzer design and implementation. 3, brief description of procedures : 1, the word attribute : a total of nine species KEYWORD : keyword "auto" "break" and "case", "char", "const", "continue", "default", "do", "double", "else", "enum" "ext
Platform: |
Size: 1214 |
Author: 天空 |
Hits:
Description: 一.实验目的
二.实验内容
三、程序简要说明
原 文 : C语言词法分析器的设计与实现
一.实验目的:
1.强化对系统软件综合工程实现能力、规划能力的训练;
2.加强对词法分析原理、方法和基本实现技术的理解;
二.实验内容:
用C语言(或 C++ )作为宿主语言完成:
C语言(ANSI C或turbo C 2.0)词法分析器的设计和实现。
三、程序简要说明:
1、属性字说明:
共9种
KEYWORD: 关键字
\"auto\",\"break\",\"case\",\"char\",\"const\",\"continue\",
\"default\",\"do\",\"double\",\"else\",\"enum\",\"extern\",
\"float\",\"for\",\"goto\",\"if\",\"int\",\"long\",\"register\",
\"return\",\"short\",\"signed\",\"sizeof\",\"static\",\"struct\",
\"switch\",\"typedef\",\"union\",\"unsigned\",\"void\",
\"volatile\",\"while\",\"include\",\"define\"
共34个
详见IsKeyWord()函数
NUMBER: 数字
包括十进制整数,八进制整数,二进制整数,十六进制整数
还可返回几种错误
详见IsNumber()函数
CONSTANT: 常量
宏定义标识符,不识别C++关键字const,简单处理一层宏定义。
详见IsDefined()函数
......
关键词 : 计算机 编译原理 c语言 词法分析器-one. Experiment 2. Experiment 3, procedures brief description of the original : C language lexical analyzer Design and Implementation of a. The experiment : 1. To strengthen the integrated system software engineering, planning capacity of training; 2. Lexical analysis on principle, and basic understanding of the technology; 2. Experiment : C (or C) as the host language completed : C language (ANSI C or Turbo C 2.0) lexical analyzer design and implementation. 3, brief description of procedures : 1, the word attribute : a total of nine species KEYWORD : keyword "auto" "break" and "case", "char", "const", "continue", "default", "do", "double", "else", "enum" "extern", "
Platform: |
Size: 1214 |
Author: 天空 |
Hits:
Description: #include \"stdio.h\"
#include \"malloc.h\"
#define TRUE 1
#define n 39
#define max 500
typedef struct
{
char p[n]
float w[n][n]
}graph
graph *ga2
int visit[n]
int path[n][n]
float C[n][n]
float A[n][n] -#include \"stdio.h\" #include \"malloc.h\" #define TRUE 1 #define n 39 #define max 500 typedef struct { char p[n] float w[n][n] }graph graph *ga2 int visit[n] int path[n][n] float C[n][n] float A[n][n]
Platform: |
Size: 4665 |
Author: jiangshan |
Hits:
Description: 函数模板T max(T a, T b, T c),使之实现对任何类型数,能从三个数中求出最大数返回。设计各种类型数据(char,short,long,float,double)调用此函数模板。-function template T max (T a, b T, T c), to enable it to achieve any of several types, a few were from the three sought to return to the greatest number. Design data types (char, short, long, float, double) calling this function template.
Platform: |
Size: 3044 |
Author: gongwen |
Hits:
Description: * 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)
}
* then we search for int HookUserMsg (char *szMsgName, pfnUserMsgHook pfn)
and add this
Code:
REDIRECT_MESSAGE( Health )
*k now we have the health registered and can read it out i stop this hear know cuz i must thanks panzer and w00t.nl that they helped me with it first time!
*ok now we go to int HUD_Redraw (float x, int y) and packing this draw code in it
Code:
Platform: |
Size: 71376 |
Author: OGC |
Hits:
Description: DESProcess
FILE *mfp,*cfp
int ttch=0,xorRes,ttbitdiff=0
char mch,cch
float bdiff=0
if((mfp=fopen(mfile,\"r\"))==NULL)
{cout<<\"Cannot open the file to compare\"<<endl }
if((cfp=fopen(cfile,\"r\"))==NULL)
{cout<<\"Cannot open the file to compare\"<<endl }
else
{
while(!feof(mfp)&!feof(cfp))
{
ttch++
mch=fgetc(mfp)
cch=fgetc(cfp)
xorRes=mch^cch
ttbitdiff+=(xorRes&1)+(xorRes&2)/2+(xorRes&4)/4+(xorRes&8)/8+(xorRes&16)/16+(xorRes&32)/32+(xorRes&64)/64+(xorRes&128)/128
}
bdiff=float(ttbitdiff)*100/float(ttch*8)
}
*bitdiff8byte=float(ttbitdiff)*100/float(8*8)
return bdiff
Platform: |
Size: 4914 |
Author: wxh |
Hits:
Description: void InitGoertzel(void)
作用:初始化算法参数
用法:采用算法进行检测前执行一次,如果需要改变参数,调用SetParameter()
float CGoertzel::GetMagnitude(unsigned char * sampleData, int length) //算法主接口
作用:对采集下来的音频数据用算法处理,返回一个结果
参数:sampleData-音频数据缓冲地址指针;
length-缓冲区尺寸(音频数据数量),字节数;
返回值:返回算法结果。
void SetParameter(DWORD set_SampleRate, DWORD set_TargetFreq, DWORD set_BlockSize)
作用:设置算法参数;
参数:set_SampleRate-音频数据抽样速率;
set_TargetFreq-目标信号频率;
set_BlockSize-算法数据块尺寸(采样点);
用法:调用本函数后,需要调用一次InitGoertzel(void)才会生效
Platform: |
Size: 14761 |
Author: tonard |
Hits:
Description: 读取配置文件(ini格式)的程序,可返回int,char*,float类型等的配置项数值。
Platform: |
Size: 2959 |
Author: 钱睿硕 |
Hits:
Description: 函数模板T max(T a, T b, T c),使之实现对任何类型数,能从三个数中求出最大数返回。设计各种类型数据(char,short,long,float,double)调用此函数模板。-function template T max (T a, b T, T c), to enable it to achieve any of several types, a few were from the three sought to return to the greatest number. Design data types (char, short, long, float, double) calling this function template.
Platform: |
Size: 3072 |
Author: gongwen |
Hits:
Description: 各种基本数据类型转换源程序。
本程序涉及到的数据类型有:float, int , char, string.-A variety of basic data type conversion source. This procedure involves the data types are: float, int, char, string.
Platform: |
Size: 107520 |
Author: Steno |
Hits:
Description: 温湿采集Templow=float(templow)/100
char ctemplow[20]
sprintf(ctemplow," 2.2lf",m_Templow)
SetDlgItemText(IDC_WISH_TEMP_LOW,ctemplow)
-I use VC for the tempration and
shi du ,and display the data to the screenI use VC for the tempration and
shi du ,and display the data to the screenI use VC for the tempration and
shi du ,and display the data to the screen
Platform: |
Size: 1971200 |
Author: 赵英伟 |
Hits:
Description: 实现c语言的词法分析器,用文件读取,要求能识别整数、自定义标识符及以下关键字:
+ - * / < <= == != > >= & && || = ( ) [ ] { } : , void int float char if else while do ! main
-Achieve c language lexical analyzer, using file read, the request can identify integers, custom identifiers and the following keywords:+-*/< < = ==! => > = & & & | | = () [] (): , void int float char if else while do! main
Platform: |
Size: 2048 |
Author: 孔秀平 |
Hits:
Description: convert char to float
Platform: |
Size: 1024 |
Author: nguyenxuantruongson |
Hits:
Description: string int char float之间的相互转换,非常全面实用。-string int char float between the conversion is very comprehensive and practical.
Platform: |
Size: 1024 |
Author: 彬彬 |
Hits:
Description: 题1:编写一个对具有n个元素的数组x[]求最大值的程序,要求将求最大值的函数设计成函数模板。
题2:编写一个函数模板add,能够实现int,double, float, char数据类型的加法运算(包括它们之间的混合加法运算)。
题3:定义一个类模板Sample实现int,double, float数据类型的比较,并能给出最大值,最小值;-Problem 1: Write one pair of n-element array x [] seek maximum program, will seek the maximum value of the function requires a function of the design template.
Question 2: Write a function template add, to achieve int, double, float, char data type addition (including a mixture of addition operations between them).
Question 3: Define a class template Sample achieve int, double, float data type comparisons, and can give the maximum, minimum
Platform: |
Size: 1024 |
Author: 吴玉祝 |
Hits:
Description: 自动读取配置文件中的参数,能读取的类型有int, float, char, double-read the parameters from the configuration file, the type is int, float, char, double
Platform: |
Size: 7168 |
Author: stephenpeng |
Hits:
Description: 进程间交互数据有很多方法,这份代码通过dll中共享内存变量的方式交互数据,例子里有int float char*的数据都调试通过,showmem的工程修改下发送的数据原样构建另一个工程文件即可-There are many ways to interact with data between processes, this code in shared memory variable dll way through interactive data, examples, there are int float char* data are debugging, data engineering modifications under showmem sent as is to build another project file that can
Platform: |
Size: 36864 |
Author: 008 |
Hits:
Description: 编程中出现的小程序,四字节char型数组转浮点数-four byte char to float
Platform: |
Size: 1136640 |
Author: 刘鹏臻 |
Hits:
Description: ArrayDemo 怎样使用array来储存和今后调用里面的值 , array可以用来储存数字/字符串/对象等,可以很快速的找到需要的内容(Arrays can be used to store primitive types (int, double, float, char,ect.) and objects. Arrays only store the references of objects.)
Platform: |
Size: 1024 |
Author: 云潇潇
|
Hits:
Description: 在实际开发中,有时候我们需要实现几个功能类似的函数,只是有些细节不同。例如希望交换两个变量的值,这两个变量有多种类型,可以是 int、float、char、bool 等,我们需要通过参数把变量的地址传入函数内部。在C语言中,程序员往往需要分别设计出三个不同名的函数,其函数原型与下面类似:(In actual development, sometimes we need to implement several similar functions, but there are some details. For example, we want to exchange the values of two variables, the two variables have a variety of types, which can be int, float, char, bool and so on. We need to pass the address of the variable into the function through the parameter. In C language, programmers often need to design three functions with different names respectively, whose function prototype is similar to the following ones.)
Platform: |
Size: 29696 |
Author: 杜嘟 |
Hits: