• 第15周总结


    排球计分相关

    计划  
    估计要用多长时间 2.5h
    开发  
    需求分析 1h
    生成设计文档 1h
    设计复审  40min
    代码规范 20min
    具体设计 40min
    具体编码 2h
    代码复审 1h
    测试 50min
    测试报告 10min
    计算工作量 25min
    总结 40min

     代码

    int q= 1;

    private void btn1_Click(object sender, EventArgs e)
    {
    int a1 = int.Parse(txta1.Text);
    int a2 = int.Parse(txta2.Text);
    int b1 = int.Parse(txtb1.Text);
    int b2 = int.Parse(txtb2.Text);
    int c1 = int.Parse(txtc1.Text);
    int c2 = int.Parse(txtc2.Text);
    if (a1 < 9)
    {
    txta1.Text = 0 + (a1 + 1).ToString();
    }
    else
    {
    if (q == 5)
    {
    if (a1 >= 14 && a1 <= a2 || a1 < 14)
    {
    txta1.Text = (a1 + 1).ToString();
    }
    else
    {

    txtb1.Text = (b1 + 1).ToString();
    txtc1.Text = (c1 + 1).ToString();
    txtjieju.Text += "第" + m + "局" + (a1 + 1).ToString() + ":" + txta2.Text + " " + " ";
    txtc2.Text = "0";
    }
    }
    else
    {
    if (a1 >= 24 && a1 <= a2 || a1 < 24)
    {
    txta1.Text = (a1 + 1).ToString();
    }
    else
    {
    txtb1.Text = (b1 + 1).ToString();
    txtc1.Text = (c1 + 1).ToString();
    txtjieju.Text += "第" + m + "局" + (a1 + 1).ToString() + ":" + txta2.Text + " " + " ";
    txta1.Text = "00";
    txta2.Text = "00";
    txtc2.Text = "0";
    txtm.Text = "第 " + (q + 1) + " 场";
                           q = q+ 1;

    }
    }

    }
    if (txtb1.Text == "3")
    {
    txta1.Text = "00";
    txta2.Text = "00";
    txtb1.Text = "0";
    txtb2.Text = "0";
    txtc1.Text = "0";
    txtc2.Text = "0";
                   q = 0;
    txtq.Text = "第 " + (m + 1) + " 场";
    txtjieju.Text += "第" + m + "局" + (a1 + 1).ToString() + ":" + txta2.Text + " " + " " + txtd1.Text + "胜";
    }
    }

          

    private void btn2_Click(object sender, EventArgs e)
    {
    int a1 = int.Parse(txta1.Text);
    int a2 = int.Parse(txta2.Text);
    int b1 = int.Parse(txtb1.Text);
    int b2 = int.Parse(txtb2.Text);
    int c1 = int.Parse(txtc1.Text);
    int c2 = int.Parse(txtc2.Text);
    if (a2 < 9)
    {
    txta2.Text = 0 + (a2 + 1).ToString();
    }
    else
    {
    if (q == 5)
    {
    if (a2 >= 14 && a2 <= a1 || a2 < 14)
    {
    txta2.Text = (a2 + 1).ToString();
    }
    else
    {

    txtb2.Text = (b2 + 1).ToString();
    txtc2.Text = (c2 + 1).ToString();
    txtjieju.Text += "第" + m + "局" + txta1.Text + ":" + (a2 + 1).ToString() + " " + " ";
    txta1.Text = "00";
    txta2.Text = "00";
    txtc1.Text = "0";
    }
    }
    if (a2 >= 24 && a2 <= a1||a2<24)
    {
    txta2.Text = (a2 + 1).ToString();
    }
    else
    {
    txtb2.Text = (b2 + 1).ToString();
    txtc2.Text = (c2 + 1).ToString();
    txtjieju.Text += "第" + m + "局" + txta1.Text + ":" + (a2 + 1).ToString() + " " + " ";
    txta1.Text = "00";
    txta2.Text = "00";
    txtc1.Text = "0";
    txtm.Text = "第 " + (m + 1) + " 场";
    m = m + 1;
    }

    }
    if (txtb2.Text == "3")
    {
                   
                   txtm.Text = "第 " + (m + 1) + " 场";
    txtjieju.Text += "第" + m + "局" + txta1.Text + ":" + (a2 + 1).ToString() + " " + " " + txtd2.Text + "胜";
    }
    }

  • 相关阅读:
    三层架构(我的理解及具体分析)
    static_cast
    1 游戏逻辑架构,Cocos2d-x游戏项目创建,HelloWorld项目创建,HelloWorld程序分析,(CCApplicationProtocol,CCApplication,AppDeleg
    关于Opengl中将24位BMP图片加入一个alpha通道并实现透明的问题
    目标检測的图像特征提取之(一)HOG特征
    curl命令具体解释
    模块管理常规功能自己定义系统的设计与实现(22--第二个模块的增加)
    程序中的魔鬼数字
    MyEclipse-6.5注冊码生成器源代码
    用angularjs开发下一代web应用(二):angularjs应用骨架(二)
  • 原文地址:https://www.cnblogs.com/pxt--1202b/p/6194366.html
Copyright © 2020-2023  润新知