C#字符串数组的奇怪现象
摘要:
大家看下这段代码: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1privatevoidbutton1_Click(objectsender,EventArgse)2{3int[]issa=newint[3]{1,2,3,4};//直接报错4int[]issb=newint[2];5for(inti=0;i5;i++)//编译报错越界6{7issb[i]=i;8}9string[]sssc=newstring[3]{"a","b","c" 阅读全文
posted @ 2010-12-22 09:49 Richinger 阅读(344) 评论(3) 推荐(0) 编辑