zoukankan      html  css  js  c++  java
  • 关于这周的作业

    前两天老师在课上给了我们一个任务:两个人一组,开发一个程序。

    程序主要包括(

    1.用户输入集合

    2.用户可以选择抽取人数(单人、双人、三人等)

    3.设置用户选择项(是否允许重复抽)

    4.显示号码滚动效果

    5.优化

    我们当时没有一点思路 就只把程序的窗体加完控件了。代码没有打,经过这几天经过查阅资料我知道要应用random类,这个可以调用随机数,虽然运行系统没报错。但是运行的结果出不来,我觉得是代码的问题,但是具体问题也没搞清。

    其中代码是(

            private void btnOK_Click(object sender, EventArgs e)         {             int[] arr = RandomNum(comboBox1, txtNumber1, txtNumber2);             int i = 0;             string temp = "";             while (i<=arr.Length-1)             {                 temp = arr[i].ToString("");                            }             textBox1.Text = temp;         }

            private int[] RandomNum(ComboBox comboBox1, TextBox txtNumber1, TextBox txtNumber2)         {             throw new NotImplementedException();         }

            private void btnCancel_Click(object sender, EventArgs e)         {             this.Close();

            }     } }

    这两天还有在进行研究。

    未完待续

    李旭、贾雨欣组

  • 相关阅读:
    Linux
    bzoj 1834
    bzoj 1002 找规律(基尔霍夫矩阵)
    bzoj 1005 组合数学 Purfer Sequence
    bzoj 1601 最小生成树
    bzoj 1001 平面图转对偶图 最短路求图最小割
    bzoj 1192 二进制
    bzoj 1012 基础线段树
    bzoj 1044 贪心二分+DP
    bzoj 1011 近似估计
  • 原文地址:https://www.cnblogs.com/123456xu/p/5316417.html
Copyright © 2011-2022 走看看