摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ccc { class Sort { //写一个方法判断用户输入是否正确,正确返回用户名,密码,用户信息 public void sorts() ... 阅读全文
posted @ 2019-01-05 19:12 D个人笔记 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 函数: 静态方法: 用static修饰过的方法 调用上 :通过类型名称 . 方法名 非静态方法: 没有被static修饰过的方法,也叫成员方法 调用上: 先new一个对象,然后通过 对象 . 方法名 调用 函数只能声明在 类 结构体 接口中 return 关键字可以跳出函数 传参: 值类型和引用类型 阅读全文
posted @ 2019-01-05 14:00 D个人笔记 阅读(142) 评论(0) 推荐(0) 编辑