本文共 273 字,大约阅读时间需要 1 分钟。
#include <iostream>using namespace std;#define swap(a) a = ((unsigned int)a >> 24) | ((unsigned int)a >> 8) & 0x0000ff00 | (a << 8) & 0x00ff0000 | (a << 24)int main(){ int a = 0x12345678; swap(a); cout << hex << a << endl; system("PAUSE"); return 0;}
转载地址:http://cbkqb.baihongyu.com/