2012年9月10日

摘要: 今天用winform做了个猜拳游戏。拖完控件的摸样:刚打开是的摸样:随便选个出拳之后:平的时候:具体的代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace 练习3_猜拳{ public partial class Form1 : Form { public Form1() { 阅读全文
posted @ 2012-09-10 17:19 gongth_12 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 集合ArrayList特点: 可变长度且里边的数组可用任何类型堆heap 占stack定义一个静态方法,在里面实例化ArrayListArrayList a=new ArrayList();foreach(int temp in new int[7]{1,12,2,3,4,55,6,7}//这是个匿名数组,用匿名数组的原因,只用这一次)属性:Count(的到集合中的实际存放数据的个数)Capacity(集合的容量)。乘2变大。如,4,8,16方法:a.Add(number) //add方法a.Insert(要插入的位置,插入的内容)remove(要移除的内容) 移除 方法removeAT(要移 阅读全文
posted @ 2012-09-10 15:15 gongth_12 阅读(87) 评论(0) 推荐(0) 编辑

导航