问答详情
源自:5-2 C#访问数组元素

请问哪里出错了

 static void Main(string[] args)
        {
            string[]job=new string[4];
            job[0]="经理";
            job[1]="项目主管";
            job[2]="技术总监";
            job[3]="财务主管";
            //声明“职位”数组,初始化为:"经理","项目主管","技术总监","财务主管"
            string[] job =
            for (int i = 0; i <job.Length  ; i++)
            {
                Console.WriteLine(job[i]+"");//打印职位

提问者:慕桂英4228071 2020-02-27 20:19

个回答

  • 慕少0391607
    2020-03-02 16:23:47

    多了个 string[] job =,WriteLine改成Write

  • 宝慕林3124045
    2020-02-28 16:09:21

    下面多了个 string[] job =