摘要:
//结构体 public struct Book { public int id; public string name; public decimal price;//这里面也可以有函数 } //枚举 enum xx { aaa, bbb, ccc };结构体可以new出来,枚举好象不行吧!另外这两个好象都是和类同级的,反正不能写在方法体中。 阅读全文
摘要:
string s = "你不是我要找的人";for (int i = 0; i < s.Length; i++)//s[i]是对字符串每个字符的提取 Response.Write(s[i].ToString() + "<br />");string[] ss = { "aacc", "adad", "ss", "byed" };foreach (string d in ss){/... 阅读全文