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

求大神解答

using System;
using System.Collections.Generic;
using System.Text;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            string [] job = new string[]{"经理","项目主管","技术总监","财务总监"};//声明“职位”数组,初始化为:"经理","项目主管","技术总监","财务主管"

            for (int i = 0; i <job.Length; i++)
            {
                Console.WriteLine(job[i]);//打印职位
            }
        }
    }
}


提问者:仙剑莫一兮 2016-11-19 09:59

个回答

  • 慕粉18362903233
    2016-11-19 12:39:00

    感觉系统有bug,打印的时候不换行就可以通过了,用 Console.Write