用C#写,创建五个学生对象给一个学生数组赋值,每个学生属性有学号,姓 ...答:*/ public static void Main(string[] args) { Student[] ss = new Student[5] { new Student("小唐","1001",1000), new Student("小孙","1002",500), new Student("小猪","1003",400), new Student("小沙","1004",300)...
如何给一个数组赋初值答:字符串数组定义赋值:char c[6]={'c', ' h ', 'i', 'n', 'a' , '\0' } 整数数组定义赋值:int a[5]={1,2,3,4,5};int a[5];for(int i=0;i<5;i++)a[i]=i;定义float数组并赋值:float b[10]={1.1,2.2,3.3,4.4,5.5,6.6,7.7,8.8,9.9,0.0} ...