从文件中读取整数并将其放置在数组中.对这些整数进行排序,然后将排序后的整数放入另一个文件中 [英] reading integers from file and place them in array. Sort these integers and put sorted integers in another file

查看:68
本文介绍了从文件中读取整数并将其放置在数组中.对这些整数进行排序,然后将排序后的整数放入另一个文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我有一个在我的能力测验中被问到的问题.从文件中读取整数并将整数放入数组中.然后对这些整数进行排序,然后将排序后的整数放入另一个文件中.我在面试中不能做这个程序.你能帮我一下吗.谢谢大家

解决方案

您听说过 Google 吗?

  1. 如何:从文件中读取文本" [ ^ ].
  2. 排序数组[C#]" [如何:将文本写入文件" [ 解决方案

Have you ever heard of Google?

  1. "How to: Read Text from a File"[^].
  2. "Sorting Arrays [C#]"[^].
  3. "How to: Write Text to a File"[^].


i tried this. But i couldn''t get the solution. Can anybody please post the code.
Thank you


这篇关于从文件中读取整数并将其放置在数组中.对这些整数进行排序,然后将排序后的整数放入另一个文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆