1.ç¼ç¨VC++ signed char c1=250 ï¼int a ;a=c1;cout<<a<<â\nâ;è¾åºaçå¼ä¸º-6ã-6å¦ä½çå°ï¼
2.-250å¨äºè¿å¶ä¸çåç ãè¡¥ç ååç
ç¼ç¨VC++ signed char c1=250 ï¼int a ;a=c1;cout<<a<<â\nâ;è¾åºaçå¼ä¸º-6ã-6å¦ä½çå°ï¼
æ¯è¿æ ·ç,源码补码越狱代源码ä½ æc1ä¼ ç»äºa,c为8ä½,a为ä½,ä½ c1çæé«ä½ä¸º1ï¼æ以ç¼è¯å¨å¸®ä½ è¿è¡äºç¬¦å·ä½æ©å ,å³:
c1ï¼ ï¼2
a ï¼ ï¼2
è¿ä¸ªå好æ¯-6çè¡¥ç å½¢å¼,转æ¢ææºç å³æå ¶è¡¥ç å1åå,å¾å°ççæ¡ä¸º:
ï¼ ï¼
æ以åæäº-6
-å¨äºè¿å¶ä¸çåç ãè¡¥ç ååç
ï¼çåç ï¼1
ï¼çåç ï¼1
ï¼çè¡¥ç ï¼1