ASSII 值域范围 -128~ 127

1935阅读 0评论2011-12-07 neobilly
分类:C/C++

  1 #include
  2 using namespace std;
  3 int main(){
  4   for(int i = 0; i < 256; i ++){
  5     char C = i;
  6     int D = C;
  7     cout<"<
  8   }
  9   return 0;
 10 }
The interesting Result:
0<--
1<---->1
2<---->2
3<---->3
4<---->4
5<---->5
6<---->6
7<---->7
8<--->8
9<--    -->9
10<--
-->10
11<--
     -->11
12<--
-->12
-->13
14<---->14
15<---->15
16<---->16
27<--27
28<---->28
29<---->29
30<---->30
31<---->31
32<-- -->32
33<--!-->33
34<--"-->34
35<--#-->35
36<--$-->36
37<--%-->37
38<--&-->38
64<--@-->64
65<--A-->65
66<--B-->66
67<--C-->67
68<--D-->68
97<--a-->97
98<--b-->98
99<--c-->99
100<--d-->100
101<--e-->101
102<--f-->102
126<--~-->126
127<--->127
128<--▒-->-128
129<--▒-->-127
130<--▒-->-126
131<--▒-->-125
250<--▒-->-6
251<--▒-->-5
252<--▒-->-4
253<--▒-->-3
254<--▒-->-2
255<--▒-->-1



上一篇:OpenSUSE latex 安装
下一篇:Divide and Conquer MergeSort Sort String with Dict Order