自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(2)
  • 资源 (3)
  • 收藏
  • 关注

原创 对于if ...else if .... 分支太多的问题

在移植一个项目代码从c 转换到 C++时,   有一个if ...else if 分支很多代码块,  C编译器可以过, C++编译器不能够,   好像分支是超过200多时, 就不能编译过去了。网上也有一些方法,比如:把每个分支封装成一个函数, 当前一个分支执行完后调用另一个函数。但这样少的话,可以, 太多的话, 工作量也很大。我是这样做的,在每个else if 分支块的末尾,添加go to 语句,跳出这个if else if ...代码块, , 在我这个项目中,因为if ... else if .. 外层是

2010-09-29 14:23:00 2616 1

转载 解决Visual C++ 编译器中混合 .c 文件时收到 C1853 预编译头错误的方法

当项目中混合了 .cpp 和 .c 文件时,编译器会对它们采取不同的编译方式(主要是因为对函数声明的处理方式不同),因而不能共用一个预编译头文件。在 VC++ 中,默认的预编译头文件是针对 C++ 的 (stdafx.h 和 stdafx.cpp),当然也可以创建针对 C 的预编译头。

2010-09-25 10:08:00 732

tcc-0.9.25-win32-bin

tcc-0.9.25-win32-bin: Features SMALL! You can compile and execute C code everywhere, for example on rescue disks (about 100KB for x86 TCC executable, including C preprocessor, C compiler, assembler and linker). FAST! tcc generates x86 code. No byte code overhead. Compile, assemble and link several times faster than GCC. UNLIMITED! Any C dynamic library can be used directly. TCC is heading torward full ISOC99 compliance. TCC can of course compile itself. SAFE! tcc includes an optional memory and bound checker. Bound checked code can be mixed freely with standard code. Compile and execute C source directly. No linking or assembly necessary. Full C preprocessor and GNU-like assembler included. C script supported : just add '#!/usr/local/bin/tcc -run' at the first line of your C source, and execute it directly from the command line. With libtcc, you can use TCC as a backend for dynamic code generation.

2011-08-18

内核态下监视新进程创建和结束

内核态下监视新进程创建和结束ProcMon.zip。 拦截系统API

2010-04-02

USBUSB 驱动分析

USB 驱动分析, USB 驱动分析

2008-03-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除