03 2010 档案
摘要:a.out是链接器的输出。a.out is a file format used in older versions of Unix-like computer operating systems for executables, object code, and, in later systems, shared libraries. The name stands for assembler...
阅读全文
摘要:Visual Studio 2005中使用intel C++ 10或者intel ipp库时,需要手动添加工程的引用即include文件夹。可以先切换到VC++编译模式,在项目属性中添加两个目录。也可以在Intel C++模式下,手动将路径加入include属性中"D:\Program Files\IPP\6.1.1.035\ia32\include";"D:\Program Files\Int...
阅读全文
摘要:VS2005下运行: unsigned char mBitBuffer = 217;//循环取出mBitBuffer 中的每一位,存入变量bit中 for (i=0;i> 7;//只保留了8位中的第一位mBitBuffer <<= 1;//最右端新增加的bit位为0printf_s("Number: %d\n", bit);}
阅读全文
摘要:// bittest.cpp// processor: x86, IPF, x64#include #include #include //for _bittest() & _bittestandset()typedefunsignedcharbyte;//取32位整形数组的第i(i从0开始)位,buf为数组指针,(long *)buf+(i>>5)用来选择数组中的每一个元素,//(i&3...
阅读全文
摘要:What if programming languages were real persons like you and me? What if they were parts of families and had relations and affairs? Have you ever thought of going to a supermarket and Visual Basic wa...
阅读全文
摘要:#include #include #include unsigned int hash(char *str);enum { MULTIPLIER = 31, NHASH = 131};/* MULTIPLIER是一个计算hash值的因数,一般取31和37,NHASH是hash表的大小,最好为素数 */typedef struct Nameval Nameva...
阅读全文
摘要:#include #include #include typedef struct Nameval Nameval;struct Nameval{char *name;int value;Nameval *left; /* lesser */Nameval *right; /* greater */};/* insert: insert newp in treep, return treep...
阅读全文

浙公网安备 33010602011771号