自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(9)
  • 资源 (1)
  • 收藏
  • 关注

原创 alig even

#include using namespace std;int addr_align(int addr, int len){if (len & len - 1) return -1;return len % addr == 0 ? len : (addr / len + 1) * len;}int main(){coutreturn 0;

2012-03-30 14:02:39 231

原创 const的重要性

#include using namespace std;int SumOfOne(unsigned char *px, int len){int ecx = 0;for (int inx=0; inx!=len; ++inx)while (px[inx]!=0) px[inx] &= px[inx] - 1, ++ecx;return ecx;}

2012-03-30 13:39:36 228

原创 sumofone

int SumOfOne(unsigned char *px, int len){int count = 0;for (int inx=0; inx!=len; ++inx)while (px[inx]) px[inx] &= px[inx] - 1, ++count;return count;}

2012-03-30 12:12:43 150

原创 246

x //intk =5 ;(xk=9 ; (xk=14; (xk=-56; ~((x

2012-03-29 00:22:16 304

原创 243

#include #include using namespace std;void print_binary(int v){int size = sizeof (int) * 8;while (size--){if ((v & 1else cout}cout}int main(){srand(time(NULL));int x =

2012-03-28 21:33:41 196

原创 what is mod ?

int main(){int a[1000];int i;for (i=0; i{a[i] = -1 -i;}printf("%d\n", strlen(a));return 0;}what is the result ?

2012-03-28 20:10:21 197

原创 declaration and definition ?

memory allocate declaration: 已定义,例如extern 或者是用于占位,函数原型。

2012-03-28 19:56:10 295

原创 endian

1、what is the address of a multiple data?  the smallest 0 1 2 3  4 5 6 7 8  0 1 2 3 4 5 6 7 8 ----------------------------------------------------------------------------------------------

2012-03-28 19:54:07 212

原创 hello world

----------->coding --------->c ---->cpp----------->cc----------->as------>ld ------------->elf loader------------>networkit's easy!1、c hello world  1 #include   2 int main()  3 {  4

2012-03-28 10:42:37 180

gun glibc gblic gun c函数库 c库源码 glibc

gun glibc 函数库的源码。。在windows上看有乱码 请下载gvim查看。。如果你正在使用linux 那么将会非常happy!

2012-05-29

空空如也

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

TA关注的人

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