C # algorithm ----- (1) Select sort

zhaozj2021-02-08  207

Hi! Friends, C # will be the preferred language of future network development. I used C # to develop a sequencing algorithm. I hope to bring some benefits to learners in C # language.

Don't forget, learn the language to spend vigorous gas data structure and algorithm.

Using system; public class selectsorter {// public enum comp_grtr}; private int min; // private int m = 0; public void sort (int [] list) {for (int i = 0; i

}}} public class mainclass {public static void main () {int [] IARRARY = new int [] {1, 5, 3, 6, 10, 55, 9, 2, 87, 12, 34, 75, 33, 47 }; SelectionsORTER SS = New SelectionSORTER (); SS.SORT (IARRARY); For (int m = 0; m ) console.writeline ("{0}", IARRARY [M]);}} has already Successful compilation.

转载请注明原文地址:https://www.9cbs.com/read-2558.html

New Post(0)