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

我这么定义数组哪里有问题?

string[] job =new string{"经理","项目主管","技术总监","财务主管"};

提问者:小丸子汤圆 2020-08-29 23:24

个回答

  • qq_Azazel_dCMSTX
    2020-08-31 13:56:52
    已采纳

    string[] job =new string[]{"经理","项目主管","技术总监","财务主管"};

    new string后面少了个”[]“