请帮助我!..我是C#2010编程中的NEWBIE [英] PLEASE HELP ME OUT!..I AM NEWBIE IN C# 2010 programming

查看:72
本文介绍了请帮助我!..我是C#2010编程中的NEWBIE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Diagnostics;

namespace PROJECT_TWO_graphic_user_interface
{
    public partial class Form1 : Form
    {
        Stopwatch time = new Stopwatch();
        int nu, attempt, Score, chances;
        public string[] bEGINNERwords = new string[5];
        string[] corresponding = new string[5];
        public static int TotalScore, count;

        //worditem class the words to be used by the player
        public class WordItem
        {
            public string m_text;
            public bool m_used;
            public WordItem(string text) { m_text = text; m_used = false; }
        }

        //create a dictionary for the words to be used

        //words (see Anagrams example)

        //check out FileData.cs still from Anagrams

        public Form1()
        {
            InitializeComponent();

            timer1.Enabled = false;
            timer1.Interval = 100;

            //from here on, initialise all the controls on the form

        }

        private void optionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OPTIONS obj = new OPTIONS();
            obj.Show();
        }

        private void highScoreToolStripMenuItem_Click(object sender, EventArgs e)
        {
            HIGH_SCORE obj = new HIGH_SCORE();
            obj.Show();
        }

        private void aboutWordJumbleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            About_Word_Jumble obj = new About_Word_Jumble();
            obj.Show();
        }

        private void eXITToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void txtPLAYER_NAME_TextChanged(object sender, EventArgs e)
        {
            if (txtPLAYER_NAME.Text == "")
            {
                MessageBox.Show("Enter your name!!");
                txtPLAYER_NAME.Focus();
            }
        }


        //button to submit a word after the text fields have been filled
        private void btnSUBMIT_Click(object sender, EventArgs e)
        {
            //get the typed word
            string thisWord = txtJumbled_Word.Text;

            //when the text filed is empty
            if (thisWord == "")
            {
                MessageBox.Show("Guess the word!");
                txtAddWord.Focus();
            }
            //else find the word in the appropriate wordItem
        }
    }
}


//当玩家使用新游戏工具tripmenuitem
时,游戏必须具有单词词典 //游戏开始时,必须显示一个混乱的单词,然后玩家在猜测单词"文本框中键入猜测,然后在点击提交"按钮后检查自己的运气来自wordlist.txt文件
//在游戏中发生所有这些情况时,第一次尝试的得分= 10,第二次尝试的得分= 7和第三次= 4,猜测单词的时间也被记录了
//尝试次数也记录在机会"文本框中!
///帮助!!附注:我对C#2010完全陌生.


//the game has to have a dictionary of words to read from when the player the new game toolstripmenuitem
//when the game begins, a jumbled word has to come up on display,then the player types their guess in the ''guess word'' textbox, then after they hit hit the ''submit'' button to to check his luck from the wordlist.txt file
//while all this is happening in the game, the points for 1st attempt = 10,2nd attempt = 7 and 3rd = 4,and the time it takes to guess the word is also recorded
//the attempts are also recorded in the ''chances'' textbox!
///HELP!! P.S.:I AM TOTALLY NEW TO C# 2010

推荐答案

既然这显然是一项家庭作业,那么您已经做了什么?

我们不为您做功课.最好的学习方法是尝试一下自己,如果您陷入某些特定的问题,然后提出有针对性的问题.

即使一开始可能会感到困难,但在这一点上花费时间和精力进行学习将在以后给您带来很大的回报.
Since this is obviously a homework, what have you done already?

We don''t do your homework for you. The best way to learn is to try yourself and if you get stuck on something specific, then ask with a targeted question.

Even though it may feel difficult in the beginning, putting time and effort in learning at this point is going to reward you greatly later on.


这里毫无疑问.我的建议是,如果您遇到问题,请使用调试器,一旦发现无法解决的问题,请再次提出该问题.
There''s no question here. My advice is to use the debugger if you''re having problems, and once you''ve identified a problem that you can''t fix, come back asnd ask about it.


这篇关于请帮助我!..我是C#2010编程中的NEWBIE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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