- 博客(3)
- 收藏
- 关注
原创 C#数组案例1
using System;namespace U0328{ class Program { static void Main(string[] args) { /* 数组:一定数据类型相同的一种数据集合 长度一旦确定就不能改变 数组的长度:数组名.Length 数组的声明及初始化: 第一种方...
2022-05-22 22:46:24 237
原创 C#案例构造方法
using System;namespace U0411{ class Program { int i = 1; static void Main(string[] args) { //创建对象 类名 对象名 = new 构造方法(参数列表); //利用调用(.)的方式实现对象对字段和方法的访问 Person p = new Person("...
2022-05-21 22:39:30 136
原创 C#索引器案例
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace u0418 { class Program { int i = 1; static void Main(string[] args) { //Person q = new Person(); Person p = new Person
2022-05-20 22:56:19 146
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人