标签:yj int List okCase Month user
List<类>定义与实例化
struct Month_okCase { public int user_id;//法官id public int case_ok;//当月已接案件 public int case_yj;//当月应接案件 public int user_bl;//个人案件比例 public double user_jl;//已接与应接之前的距离百分比 } List<Month_okCase> my_list = new List<Month_okCase>(); Month_okCase month_OkCase = new Month_okCase();
List排序
my_list.Sort(delegate (Month_okCase a, Month_okCase b) { return a.user_jl.CompareTo(b.user_jl); });
List<类>更改指定内容
for (int i = 0; i < my_list.Count; i++) { Month_okCase yj = my_list[i]; yj.case_yj = Convert.ToInt32(fe * yj.user_bl); my_list[i] = yj; }
标签:yj,int,List,okCase,Month,user 来源: https://www.cnblogs.com/Intern-programmer/p/14337951.html