2013年11月6日
摘要: Book.cs文件using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace Booklist{ public class Book { /// /// 作者 /// public string Author { get; set; } /// ///... 阅读全文
posted @ 2013-11-06 18:35 神秘藏宝室 阅读(751) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ControlProject{ class Program { static void Main(string[] args) { Array myarr; //创建数组 var v = 10; //创建一个匿名类型的变量 myarr = Array.CreateInstance... 阅读全文
posted @ 2013-11-06 16:18 神秘藏宝室 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 1.多维数组using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ControlProject{ class Program { static void Main(string[] args) { //新建一个3*4的数组 string[,] person = new string[3, 4]; person[0, 0] = "姓名"; p... 阅读全文
posted @ 2013-11-06 16:07 神秘藏宝室 阅读(241) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ControlProject{ class User { public string Name { get; set; ... 阅读全文
posted @ 2013-11-06 15:21 神秘藏宝室 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 11月1日开始学些C#,今天学习到数组。 几种定义数组的方法: int[] myInt; //声明 myInt = new int[7]; //初始化 int[] myInt1 = new int[7]; /... 阅读全文
posted @ 2013-11-06 15:08 神秘藏宝室 阅读(547) 评论(0) 推荐(2) 编辑

 >>>转载请注明出处<<<