上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 构造方法:1,用于初始化,一个类中最少有一个2,用new关键字调用3,不能有返回值4,方法名和类名一样 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System 阅读全文
posted @ 2020-06-07 18:49 进一步海阔天空 阅读(158) 评论(0) 推荐(0)
摘要: 方法重载: 需求:解决多个同类型方法的命名的问题 好处:方便使用编译器判断的依据:1,方法同名 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Thr 阅读全文
posted @ 2020-06-07 18:24 进一步海阔天空 阅读(150) 评论(0) 推荐(0)
摘要: 方法的定于与使用:方法:实例方法,静态方法(构造方法,抽象方法,虚方法,扩展法)定义规范:访问修饰符,返回值类型 方法名(参数1,参数2,参数3。。。){在这里我们要做的事件return返回值(没有返回值就不用写return语句,有返回值就一定要写return语句)}方法命名:Pascal命名法,首 阅读全文
posted @ 2020-06-07 15:36 进一步海阔天空 阅读(216) 评论(0) 推荐(0)
摘要: 类与对象: 对象:万物皆对象 类:类就是一个模板 静态特征:用来描述对象状态(属性) 动态特征:行为,用来操作对象的状态(方法) 代码: using System; using System.Collections.Generic; using System.Linq; using System.T 阅读全文
posted @ 2020-06-06 19:31 进一步海阔天空 阅读(133) 评论(0) 推荐(0)
摘要: 数组4大定义: /// 1,数据有什么用?在同时声明多个同类型的变量的时候,非常适合 /// 2,数组定义 /// 3,数组的使用 /// 4,优点:效率高,使用方便 using System; using System.Collections.Generic; using System.Linq; 阅读全文
posted @ 2020-06-06 15:11 进一步海阔天空 阅读(183) 评论(0) 推荐(0)
摘要: 代码: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace while循环语句 { /// <sum 阅读全文
posted @ 2020-06-05 18:49 进一步海阔天空 阅读(186) 评论(0) 推荐(0)
摘要: 代码: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace for循环语句2 { class Pro 阅读全文
posted @ 2020-06-05 18:14 进一步海阔天空 阅读(174) 评论(0) 推荐(0)
摘要: for循环语句的固定代码是: for(int i=0;i<length;i++) { } (初始化第一次执行,并且只执行一次,计数器第一次不执行:因为第一次知道自己的值) using System; using System.Collections.Generic; using System.Lin 阅读全文
posted @ 2020-06-05 14:41 进一步海阔天空 阅读(151) 评论(0) 推荐(0)
摘要: 第一步:新建项目,选择平台(windows)项目选择(桌面)选择:windows窗口应用程序 名称自己写一下,创建成功后出来的页面是: 设计窗体: Lide:显示文字 Button:输入窗体 TextBox:用来输入文字 font:修改文字大小 双击dutton添加代码: using System; 阅读全文
posted @ 2020-06-05 00:04 进一步海阔天空 阅读(172) 评论(0) 推荐(0)
摘要: if-else语句:if是如果的意思,else是其他情况的意思 代码: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks 阅读全文
posted @ 2020-06-04 18:08 进一步海阔天空 阅读(286) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 下一页