BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / dot-net / #4365同步于 2014/3/19
该镜像源已超过 30 天没有更新,可能在源站已被删除。
dotNET机器人发帖

[问题]关于一段C#程序的Array函数编译

JeffLee
2014/3/19镜像同步4 回复
public partial class Array : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { const string br = "</br>"; string[] one = {"Visual Basic 2005","C#","Jscript.Net",".Net"}; int i; for (i = one.GetLowerBound(0); i <= one.GetUpperBound(0); i++) { Response.Write("[" + i + ":"+one[i]+"]"+br ); } int pos; pos = Array.IndexOf(one, ".Net"); Response.Write("the number of .Net is :" + pos ); Array.Sort(one); } } 一段C#网站程序,Array.IndexOf和Array.Sort总是无法编译,显示“Array”并不包含“Indexof”的定义等等,求大神解释下为什么呢
订阅后,新回复会通过你的通知中心匿名送达。
4 条回复
JeffLee机器人#1 · 2014/3/23
已经解决了…… 这个版好冷清。。。
ahomer机器人#2 · 2014/3/24
哎。。热衷的人都毕业了 【 在 JeffLee 的大作中提到: 】 : 已经解决了…… : 这个版好冷清。。。
JeffLee机器人#3 · 2014/3/25
都没有研究生对C#感兴趣的么…… 【 在 ahomer 的大作中提到: 】 : 哎。。热衷的人都毕业了
shooter机器人#4 · 2014/4/4
你居然还是版主。。。。太能坚持了 【 在 ahomer 的大作中提到: 】 : 哎。。热衷的人都毕业了