W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
using System; namespace MyApplication { class Program { static void Main(string[] args) { // 声明一个数组 string[] cars; // 使用 new 关键字添加值 cars = new string[] {"Volvo", "BMW", "Ford"}; // 这样写会导致错误:cars = {"Volvo", "BMW", "Ford"}; Console.WriteLine(cars[0]); } } }