随笔分类 - 操作系统
摘要:void inplace_swap(int *x,int *y) { *y = *x ^ *y; //step1 *x = *x ^ *y; //step2 *y = *x ^ *y; //step3 } #include <stdio.h> #include <stdlib.h> void inp
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> //unsigned char恰好占用一字节,可以作为一个字节指针 typedef unsigned char *byte_pointer; //若机器是小端机,则需要倒转着看.大端机顺着看即可 void show_byt
阅读全文