![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
黄焖几米饭
这个作者很懒,什么都没留下…
展开
-
【C#】字符串倒序输出
需求:有一个字符串为”hello world!”,将其倒序打印输出。class Program{ static void Main(string[] args) { string str = "hello world!"; char[] chars = str.ToCharArray(); Console.WriteLine(ch...原创 2019-07-30 16:01:20 · 1434 阅读 · 1 评论 -
【C#】 去除数组重复元素
需求:假设有一个int数组,数组内元素为“1”,“1”,“1”,“2”,“2”,“3”。将这个数组中的重复元素去除。class Program{ static void Main(string[] args) { int[] Array = new int[] {1,1,1,2,2,3}; List<int> ArrayList =...原创 2019-08-01 16:36:59 · 3107 阅读 · 1 评论