先謝謝各位大神了?nt[] grade = new int[] { 90, 65, 88, 70, 46, 81, 100, 68 };??????????? int a = array.indexof(grade,90);、報(bào)錯(cuò)當(dāng)前上下文不存在名稱“array”是因?yàn)樯倭嗣臻g嗎,如果是少了哪個(gè)using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Collections;
2 回答
已采納

慕粉3769977
TA貢獻(xiàn)16條經(jīng)驗(yàn) 獲得超7個(gè)贊
你這是c#的代碼嗎?c#的話,需要using System; c#中類首字母都會(huì)大寫。Array.IndexOf(grade,90)
- 2 回答
- 0 關(guān)注
- 1666 瀏覽
添加回答
舉報(bào)
0/150
提交
取消