小典故:为什么数组的索引总是从0开始,而不是1?
摘要:
今天在看Programming C#4.0突然发现了一个典故,挺有意思,发上来分享一下:C-family languages tend to number things from zero, and C# follows suit. This may seem a little idiosyncratic, but it makes sense to the computer. You can think of it as saying how far into the array you want to look. If you want to look at the thing right 阅读全文
posted @ 2012-02-23 09:11 胡茂晓 阅读(581) 评论(0) 推荐(0) 编辑