超市管理涉及的资料

时间:2014-12-14 14:33:17
【文件属性】:

文件名称:超市管理涉及的资料

文件大小:11KB

文件格式:XLSX

更新时间:2014-12-14 14:33:17

超市资料

ring[] books = { "Java", "C#", "C++", "vb" }; Console.WriteLine("初值:"); PrintAarrayValues (books ); Array.Sort(books); Console.Write("升序后的值:"); PrintAarrayValues (books ); Array.Reverse(books ); Console.ReadLine(); } private static void PrintAarrayValues(string[] books) { for (int i = 0; i < books.Length; i++) { Console.Write("{0}\t", books[i]); } Console.WriteLine(); } string oldstr = Console.ReadLine(); string[] mystr = oldstr.Split('#'); int[] myint = new int[mystr.Length]; int i = 0; for (i = 0; i < mystr.Length; i++) { myint[i] = Convert.ToInt32(mystr[i]); } for (i = 0; i < myint.Length; i++) {


网友评论