请我需要通过C#对数组进行准确的解释,包括对数组进行排序

编程入门 行业动态 更新时间:2024-10-23 08:33:39
本文介绍了请我需要通过C#对数组进行准确的解释,包括对数组进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

请我是初学者 我需要通过c#进行有关数组的准确解释,包括对array

please i''m beginner i need accurate explain about array by c# including sorting array

推荐答案

进行排序.数组是相同类型的对象序列,可以通过集合名称引用它,并通过该名称的索引(通常是整数,但有时是字符串)进行访问. 例如: An array is a sequence of objects of the same type, which can be referered to by a collective name, and accessed via an index to that name (normally integer, but sometimes string). For example: string[] myStrings = new string[] ("A string", "Another string"}; Console.WriteLine(myStrings[0]);

"myStrings"是集合名称,"0"是第一个字符串的索引. 对数组进行排序非常简单:

"myStrings" is the collective name, and "0" is the index of the first string. Sorting an array is very simple:

Array.Sort(myArray);

会做到的. 您还想知道什么?

Will do it. What else do you want to know?

更多推荐

请我需要通过C#对数组进行准确的解释,包括对数组进行排序

本文发布于:2023-07-29 00:38:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1235602.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数组   请我   准确

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!