C??C++?????л?????????????
???????????? ???????[ 2015/11/26 11:49:32 ] ????????.NET ???????????
????1??C??C++?????л??????????????У???????char???????Σ?short?? int?? long???? ???????float?? double??
???????????????λ?????????????????????????????????????????????????????ò??????????????????? unsigned?????????????????????????λ?????????λ????λ?0????????????λ?1??????????????????????????????????????????????????????±?????????Χ??
????2????????????????????????????????Χ??????????3?????Χ???????????μ????
????int main()
????{
????signed char ch = 127;
????ch += 1;
????printf("%d
"?? ch);
????return 0;
????}
?????????????-128?????????ch????????127???????char?????????????????-128???????????????
???????????????127????????????????????01111111??
???????????01111111 + 00000001 = 10000000;
????????????????ch?????????????λ?1????????????????????????????????ò??????洢???????????????????????????????????????????????????????????????????????1????????????????
???????????????????????????裬?????????????????????????в????10000000??????10000000 - 00000001 = 01111111??????01111111????10000000??10000000 = 128??????????????????ch?-128.
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11