摘要: 会有兴趣写点有用的东西,现在我有这么一个需求,根据一个c++的头文件生成一个文本文件(其实是lua文件,作为语法测试用的桩代码)c++头文件就是类似这样#ifndef__XXX_H__#define__XXX_H__//sdfasdfasvoidfunc0();voidfunc1(floatx);enumE_XXX{E_XXX_A,E_XXX_B,E_XXX_C,};boolfunc2(intx,inty=0);/*sdfsdfsf*/intfunc3(intx,floaty,doublez);#endif//__XXX_H__我只关心函数声明的部分。生成的文本文件类似这样functionfu 阅读全文
posted @ 2012-08-13 20:33 pipicfan 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 运行环境tubor C/* This is a simple overwriting virus programmed in Turbo C *//* It will infect all .COM files in the current directory *//* Infections destroy the programs and cannot be cured *//* It was presented in Virology 101 (c) 1993 Black Wolf *//* FOR EDUCATIONAL PURPOSES ONLY, DO ... 阅读全文
posted @ 2012-08-13 19:12 pipicfan 阅读(291) 评论(0) 推荐(0) 编辑