摘要: 视频地址:https://www.bilibili.com/video/BV1Vt411X7JF 笔记(搬运):https://blog.csdn.net/Mu_Xiaoye/article/details/104299664 阅读全文
posted @ 2020-10-12 21:11 ___lucky 阅读(289) 评论(0) 推荐(0)
摘要: 跟着B站视频敲的代码,教程在此:(适合突击一下大作业) https://www.bilibili.com/video/BV1zJ411k7cQ?p=1 第一步先进行窗体设计,Form1为登录窗体,修改Form1的Text属性为登录,设计如下 左侧为一个pictureBox控件,可以设置image属性 阅读全文
posted @ 2020-09-30 12:16 ___lucky 阅读(2128) 评论(0) 推荐(0)
摘要: Form设计: 三个textBox,一个comboBox,一个button 修改第一个textBox的属性,将Name修改为textNumber1,第二个textBox的Name修改为textNumber2,第三个textBox的Name修改为textResult 右键选中下拉框—编辑项,添加 + 阅读全文
posted @ 2020-09-24 18:30 ___lucky 阅读(182) 评论(0) 推荐(0)
摘要: 达成效果:用户输入一门成绩,然后根据成绩来判断是什么等级的用户输入两门成绩,然后根据成绩来判断是什么等级的用户输入三门成绩,然后根据成绩来判断是什么等级的提示用户输入哪门成绩提示用户需要输入数字输出等级成绩 class Program { static void Main(string[] args 阅读全文
posted @ 2020-09-24 17:54 ___lucky 阅读(158) 评论(0) 推荐(0)
摘要: class Program { static void Main(string[] args) //快捷键 svm 两下Tab键 { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= i; j++) { Console.Write("{0}*{1 阅读全文
posted @ 2020-09-24 17:14 ___lucky 阅读(119) 评论(0) 推荐(0)
摘要: class Program { static void Main(string[] args) { string name, pwd; Console.WriteLine("请输入用户名:"); while (true) { name = Console.ReadLine(); if (string 阅读全文
posted @ 2020-09-24 17:09 ___lucky 阅读(224) 评论(0) 推荐(0)
摘要: class Program { static void Main(string[] args) { Student stu = new Student(); stu.Name = "nepenthe"; Console.WriteLine(stu.Name); Console.ReadKey(); 阅读全文
posted @ 2020-09-24 16:56 ___lucky 阅读(98) 评论(0) 推荐(0)
摘要: class Program { static void Main(string[] args) { Math math = new Math(); double i = math.Add();//实例方法需要通过实例访问 Console.WriteLine(i); double j = Math.M 阅读全文
posted @ 2020-09-24 10:59 ___lucky 阅读(128) 评论(0) 推荐(0)
摘要: class MyClass //myClass是类类型的变量 { public MyClass()//构造函数的名称和类的名称是一样的 { } public MyClass(int x)//构造函数可以重载 { } public int age; } class ChildClass : MyCla 阅读全文
posted @ 2020-09-24 10:41 ___lucky 阅读(89) 评论(0) 推荐(0)
摘要: static void Main(string[] args) { int[] age = { 12, 45, 70, 34 }; while (true) { Console.WriteLine("请输入索引:"); int index = int.Parse(Console.ReadLine() 阅读全文
posted @ 2020-09-24 09:51 ___lucky 阅读(106) 评论(0) 推荐(0)