#include<iostream.h>void main(){ char array[200]; for(char ch=0;ch<200;ch++) { array[ch]=07; cout<<array[ch]; }}
引用第2楼zc1984于2007-03-25 20:43发表的:Ill-defined for-loop: 'char' values are always of range '-128' to '127'. Loop executes infinitelyso, Index '-128' is out of valid index range '0' to '199' for possibly stack allocated buffer 'array'so, ~~~~.......
引用第4楼ljpdxj于2007-03-25 20:49发表的:是不是改这样解释: char从0~127时二进制为00000000~01111111到127后再然后++.......
引用第6楼zc1984于2007-03-25 20:51发表的:这就是传说中的溢出了~~