1、定义一个结构变量union intchar{ unsigned int tempval;struct { unsigned char hi;unsigned char low;}bytek;}i,c;这样直接可以引用。2、如你的程序,c=(uint)a>>8+b; //这样就可以了 实际上你的c=a<<8+b>>8错误,只要改为c=(uint)a<<8+b;...