那位有适合初学c#人看的程序文件?

来源:百度知道 编辑:UC知道 时间:2024/06/08 18:06:04

我学习时候写的你看吗?一个命令行的C#程序,背单词的。
单词库只添加了几个测试用的词语。

using System;

namespace 北斗
{
public class word
{
private string[] english={"dog","apple","hello","friend","brother","school"};
private string[] chinese={"狗","苹果","你好","朋友","兄弟","学校"};
private int[] question=new int[6];
private bool[] sure=new bool[6];
private string input;
private int fen;
public delegate void makeform(int a,int b,int c);
public delegate bool examine(int a,string b);
public event makeform make;
public event examine look;
private void makethod(int a,int b,int c)
{
if(a==0)
{
for(int i=1;i<=c-b+1;i++)
question[i]=b+i-1;
}
else
{
Random random=new Random();
int rand;
bool come=false;
f