上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 方法重载: 需求:解决多个同类型方法的命名的问题 好处:方便使用编译器判断的依据:1,方法同名 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Thr 阅读全文
posted @ 2020-06-07 18:24 进一步海阔天空 阅读(147) 评论(0) 推荐(0)
摘要: 方法的定于与使用:方法:实例方法,静态方法(构造方法,抽象方法,虚方法,扩展法)定义规范:访问修饰符,返回值类型 方法名(参数1,参数2,参数3。。。){在这里我们要做的事件return返回值(没有返回值就不用写return语句,有返回值就一定要写return语句)}方法命名:Pascal命名法,首 阅读全文
posted @ 2020-06-07 15:36 进一步海阔天空 阅读(213) 评论(0) 推荐(0)
摘要: 类与对象: 对象:万物皆对象 类:类就是一个模板 静态特征:用来描述对象状态(属性) 动态特征:行为,用来操作对象的状态(方法) 代码: using System; using System.Collections.Generic; using System.Linq; using System.T 阅读全文
posted @ 2020-06-06 19:31 进一步海阔天空 阅读(132) 评论(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 进一步海阔天空 阅读(184) 评论(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 进一步海阔天空 阅读(149) 评论(0) 推荐(0)
摘要: 第一步:新建项目,选择平台(windows)项目选择(桌面)选择:windows窗口应用程序 名称自己写一下,创建成功后出来的页面是: 设计窗体: Lide:显示文字 Button:输入窗体 TextBox:用来输入文字 font:修改文字大小 双击dutton添加代码: using System; 阅读全文
posted @ 2020-06-05 00:04 进一步海阔天空 阅读(168) 评论(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 进一步海阔天空 阅读(285) 评论(0) 推荐(0)
摘要: 运算符有以下几种: 算数运行符:+ — * %(取余) 关系运算符:> >= < <= ==(等于) !=(不等于) 逻辑运算符:&&(与) ||(或) !取反(非) 赋值运算符:=(赋值) 逻辑运算符:&&(与):当两个条件都为true才会true,否则都为false ||(或):当两个条件都为f 阅读全文
posted @ 2020-06-04 13:54 进一步海阔天空 阅读(162) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 下一页