c/c++
Gsnsm
碌碌无为 一事无成
展开
-
Ascii码表
Text only语言: Ascii码表(全)ASCII Table (7-bit)(ASCII = American Standard Code for Information Interchange) Decimal Octal Hex Binary Value ------- ----- --- ----转载 2011-12-12 10:36:47 · 353 阅读 · 0 评论 -
HOOK小记
孙鑫VC++深入详解笔记dwThreadId为当前线程ID时为进程内钩子。当为0时为全局钩子与运行的所有进程都相关,此时lpfn为一个DLL中的钩子过程,hMod为DLL句柄HHOOK SetWindowsHookEx( int idHook, // hook type HOOKPROC lpfn, // hook procedure HINSTAN转载 2011-12-26 14:12:41 · 462 阅读 · 0 评论 -
排序
1,冒泡#include void sortArray(int *,int);int main(void){ const int SIZE=10; int arr[SIZE]={9,8,7,6,5,4,3,2,1,0}; sortArray(arr,SIZE); for(int i=0;i printf("%d ",arr[i]); printf("\原创 2012-02-10 14:20:30 · 238 阅读 · 0 评论 -
c_function_note
/* 去除多个空格,只留一个 */void deblank(char string[]){ if(string==NULL) return; int n; char *cp; char *temp; cp=string; while(*cp){原创 2012-02-28 12:59:58 · 450 阅读 · 0 评论