- 博客(6)
- 收藏
- 关注
原创 C#输出三角形
static void Main(string[] args) { int n; Console.WriteLine("输入一个1-20之间的整数"); String a = Console.ReadLine(); if (int.TryParse(a, out n) == true) { trinout(n); ...
2022-04-02 09:16:46
412
原创 C#猜数字小游戏(2)
运行效果: 这次添加了Textbox用来显示输入过的值,还有一些messageBox提示。 对代码进行了一些修改 namespace WindowsFormsApp7 { public partial class Form1 : Form { public static Form1 form; //创建一个可以在其他类调用的窗口属性 public int A = 0;//位置正确的个数 public int B .
2022-03-30 10:45:38
186
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人