執行 ❯
獲取您自己的 C# 伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
using System; namespace MyApplication { class Program { static void Main(string[] args) { try { int[] myNumbers = {1, 2, 3}; Console.WriteLine(myNumbers[10]); } catch (Exception e) { Console.WriteLine(e.Message); } } } }
索引超出了陣列的界限。