简体   繁体   English

数组不会超过14

[英]Arrays won't go past 14

I have this code: 我有以下代码:

int[] numbers = new int[1000];

When I debug in Visual Studios and hover my mouse over the num array it shows the length is 1000 and then the first 14 characters are 0 and everything after that is a "?". 当我在Visual Studios中调试并将鼠标悬停在num数组上时,它显示长度为1000,然后前14个字符为0,其后的所有内容均为“?”。

愚蠢的数组

Assigning numbers[15]+ doesn't change anything nor does it crash the program. 分配数字[15] +不会更改任何内容,也不会使程序崩溃。

I figured it out! 我想到了!

Thanks to @CodeCaster 感谢@CodeCaster

It is just a bug in visual studios that glitches the values out. 只是视觉工作室中的一个错误,它会破坏价值观。 Just using the mouse over the arrows at the bottom work. 只需将鼠标悬停在底部箭头处即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM