没有合适的资源?快使用搜索试试~ 我知道了~
一个适合初学者学习的关于文件操作,txt文件操作,实现的对文本的排序,以及添加,功能 文本操作 流操作 排序 泛型 类的封装
资源推荐
资源详情
资源评论
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Collections;
namespace StudyDemo
{
class Program
{
#region 程序入口
static void Main(string[] args)
{
Program ph = new Program();
ph.Title();
List<Word> list_wor = new List<Word>();
Util u = new Util();
string end="S";
while (end != "E")
{
Console.WriteLine("1:添加单词 2:重复单词检查 3:排序 4:退出 ");
string temp = Console.ReadLine();
switch (temp)
{
case "1":
Console.WriteLine("请输入单词!!");
string word = Console.ReadLine();
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Collections;
namespace StudyDemo
{
class Program
{
#region 程序入口
static void Main(string[] args)
{
Program ph = new Program();
ph.Title();
List<Word> list_wor = new List<Word>();
Util u = new Util();
string end="S";
while (end != "E")
{
Console.WriteLine("1:添加单词 2:重复单词检查 3:排序 4:退出 ");
string temp = Console.ReadLine();
switch (temp)
{
case "1":
Console.WriteLine("请输入单词!!");
string word = Console.ReadLine();
u.writeFile(word);
list_wor = u.getData();
break;
case "2":
Console.WriteLine("当单词字典的单词情况:");
break;
case "3":
Console.WriteLine("经排序后的单词情况:");
u.Order();
Console.WriteLine("单击后继续");
break;
case "4":
Console.WriteLine("你确定要退出!! Y/N");
string result=Console.ReadLine();
if (result == "Y")
{
end = "E";
}
else
{
Console.WriteLine("你的输入非法!!");
list_wor = u.getData();
break;
case "2":
Console.WriteLine("当单词字典的单词情况:");
break;
case "3":
Console.WriteLine("经排序后的单词情况:");
u.Order();
Console.WriteLine("单击后继续");
break;
case "4":
Console.WriteLine("你确定要退出!! Y/N");
string result=Console.ReadLine();
if (result == "Y")
{
end = "E";
}
else
{
Console.WriteLine("你的输入非法!!");
剩余8页未读,继续阅读
资源评论
Wsf2918
- 粉丝: 6
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功