
complier
文章平均质量分 69
chenbuaa
这个作者很懒,什么都没留下…
展开
-
为flex提供多输入缓冲!Multiple input buffers
Some scanners (such as those which support "include" files) require reading from several input streams. As flex scanners do a large amount of buffering, one cannot control where the next input will原创 2004-12-20 16:12:00 · 1648 阅读 · 0 评论 -
在VC编写的DLL中导出C++类
如何在VC中导出类,这是一个常有人问起的问题,下面我以一个简单的例子来说明这个问题: 首先使用Wizard创建一个Win32 Dynamic-Link Library工程,然后定义一个简单的C++类CInDLL。由于该类会被工程之外的文件所引用,所以需要对这个类进行引出。因为只有引出后所生成的DLL中才带有供足够的信息以在连接和运行时被正确引入到进程空间中。有两种方法可以引出类,使原创 2005-04-22 12:04:00 · 3329 阅读 · 0 评论 -
How To Use the C Run-Time
Section 1: Three Forms of C Run-Time (CRT) Libraries Are AvailableThere are three forms of the C Run-time library provided with the Win32SDK:•LIBC.LIB is a statically linked library for sin原创 2005-09-13 13:43:00 · 1863 阅读 · 0 评论 -
C语言中易被忽略的地方
in = fopen("input.file","r"); int res = fgetc(in); 此时,如果in = 0x1A的话,res = EOF, 如果靠这个来判断文件是否结束,则会出错。 正确的做法是 fopen("input.file","rb"); out = fopen("output.file","w"); 如果此时向文件中写原创 2005-04-05 16:23:00 · 1462 阅读 · 0 评论 -
Postscript III:The Operand Stack of PostScript: Arrays, Variables, Loops and Macro Definitions
IntroductionThis is the third of a series of articles about PostScript. We continueto tell about the operand stack of the PostScript. We emphasize on thedefinition of the arrays, array opera原创 2005-03-22 15:20:00 · 1716 阅读 · 0 评论 -
PostScript之二-操作数栈,栈操作符和数学运算符
引言: 这是第二篇关于 PostScript 的系列文章。本文的主要目的是论述堆栈的操作。操作数栈可能是 PostScript中最主要的部分。赋值、算术或数学运算、循环和逻辑运算都在这块特殊的存储区内进行。是的!堆栈是一块特殊的存储区,被 PostScript用来执行几乎所有我们要求它完成的操作。堆栈以后进先出的规则保持信息。你可以把它形象化成一根一端封闭的导管。当你向它里面放入某原创 2005-03-22 15:19:00 · 4015 阅读 · 1 评论 -
珊瑚虫外挂原理分析【转贴】
珊瑚虫外挂原理分析作者: RunJin runjin000@yahoo.com.cn分析工具: softice , OD我的操作系统: win 2000 sp4 , win 98分析对象: QQ2005贺岁版 珊瑚虫外挂为了方便分析,我先把CoralQQ.dll和coralqq.exe先脱壳,这两个文件加的都是超弱壳,脱壳过程不在这里多说.转载 2005-03-23 19:03:00 · 2087 阅读 · 0 评论 -
The PostScript Language
Introduction The main purpose here is not to teach each detail of this software but to give sufficient material for the persons who find PostScript an interesting and enjoyable prog原创 2005-03-22 15:18:00 · 1843 阅读 · 0 评论 -
下载bison和flex的好地方
http://sourceforge.net/projects/gnuwin32这里的bison和flex我觉得是最好用的。捣乱的也给出了很好的定义,不用每次都创建一个空的了。原创 2004-12-27 12:26:00 · 7002 阅读 · 0 评论 -
将lex,yacc(flex,bison)与MFC结合起来使用!
近来开始用lex和bison来写一些东东,这两者结合起来使用是相当的方便。用lex,bison做完核心的分析处理之后,想必大家都会把这些嵌入到自己的工程里面,和其他的功能结合起来。但是,往往此时会出现许多的错误。 lex,bison默认生成的都是C的源程序,而且二者都有自己的语法规则。 有时会与VC有些冲突,但是,只要修改部分定义之后这些问题都是可以解决的。1,yyerror()函数,原创 2004-12-24 08:13:00 · 5955 阅读 · 2 评论 -
用Lex(flex)和yacc(bison)写的简单计算器
Lex文件如下: %{#include "cal.tab.h"%}%option noyywrapinteger [0-9]+dreal ([0-9]*"."[0-9]+)ereal ([0-9]*"."[0-9]+[EedD][+-]?[0-9]+)real {dreal}|{ereal}nl /nplus原创 2004-12-19 19:28:00 · 4220 阅读 · 1 评论 -
DLL(Dynamic Link Libraries)专题
[ 原创文档 本文适合初级读者 已阅读13080次 ] DLL(Dynamic Link Libraries)专题 作者:姜山 原文出处:http://www.microsoft.com原创 2005-04-22 15:18:00 · 1925 阅读 · 0 评论