![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c c++
zmjyjy
这个作者很懒,什么都没留下…
展开
-
数组越界
/*数组越界C语言编译器不会自己检查数组越界的,要靠程序员自己注意 如果越界,一般来说同样可以修改、访问,所以你的程序输出结果不变 但是要知道:越界部分是别的部分的数据甚至代码,修改、访问可能导致程序错误 */ #include void main() { int iOut = -1; int arr[4]; for ( int i = 0; i { ar转载 2012-11-18 10:12:26 · 176 阅读 · 0 评论 -
rand函数
MSDN中关于rand的描述"The rand function returns a pseudorandom integer in the range 0 to RAND_MAX (32767). Use the srand function to seed the pseudorandom-number generator before calling rand." rand()产生的伪随机数转载 2012-11-18 09:55:59 · 227 阅读 · 0 评论