博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
排球计分程序
阅读量:5040 次
发布时间:2019-06-12

本文共 2549 字,大约阅读时间需要 8 分钟。

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

 

 

 

 

 

代码

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 + "\r" + "\n";
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 + "\r" + "\n";
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 + "\r" + "\n" + 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() + "\r" + "\n";
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() + "\r" + "\n";
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() + "\r" + "\n" + txtd2.Text + "胜";
}
}

转载于:https://www.cnblogs.com/xinshanghenji/p/6195088.html

你可能感兴趣的文章
Bean的Scope
查看>>
【BZOJ】3142: [Hnoi2013]数列
查看>>
http初探
查看>>
elasticsearch的安装
查看>>
__next__()
查看>>
爬取:中国大学排名
查看>>
聊天室(C++客户端+Pyhton服务器)_1.框架搭设
查看>>
UpdatePanel 内控件 更新“外的”控件【转】
查看>>
mybatis中&gt;=和&lt;=的实现方式
查看>>
Python面向对象03/继承
查看>>
java序列化和反序列化
查看>>
绝对定位
查看>>
flink源码编译(windows环境)
查看>>
dpkg 删除 百度网盘 程序
查看>>
服务器nginx安装
查看>>
std::nothrow
查看>>
rest-framework 分页器
查看>>
JQuery(一)安装&选择器 样式篇
查看>>
浏览器的DNS缓存查看和清除
查看>>
浏览器跨域问题
查看>>