- 博客(2)
- 收藏
- 关注
原创 判断年份是否润年
private void btnJudging_Click(object sender, EventArgs e) { int year = Convert.ToInt32(txtYear .Text); if (year % 4 == 0 && year / 100 != 0 || year % 400 == 0) { lblShow.Text = string.Format("{0}年是闰年!", year
2023-02-06 17:07:06
54
原创 c#简单四则运算
//双击即可按钮进入窗体逻辑类(From1.cs) private void btnResult_Click(object sender, EventArgs e) { int num1 = Convert.ToInt32(txtNum1.Text); int num2 = Convert.ToInt32(txtNum2.Text); int result = 0; switch (cmbOp.SelectedItem.ToString()) {
2023-02-06 17:05:18
115
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人