版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。版权
C#专栏收录该内容
19 篇文章0 订阅
订阅专栏
1.请在Test类中定义不少于4个重载函数。(25分)
publicvoidEat(string what,stringwhere){ Console.WriteLine("中午在"+where+"吃"+what);}publicvoidEat(string what,int i){ Console.WriteLine("中午吃"+what+i+"份");}publicvoidEat(string what,int i,stringwhere){ Console.WriteLine("中午在"+where+"吃"+ what+ i+"份");}publicvoidEat(){}
2.创建一个数组,用插入排序使它的输出结果为降序。(25分)
publicvoidArrays(){int[] a=newint[]{5,19,46,7,35,49,65,2,18};for(int i=1; i