摘要:
查询表达式:1常用的Linq字句:from(要查找的数据源),select(指定查询要返回的目标数据),where(指定查询的筛选条件),orderby(升序倒叙),group(指定元素的分组字段),Join(指定多个数据源的关联方式)1.1:from字句:from localval in dataSource var query = from intval in array select intval+1; foreach (int val in query) { Console.WriteLine("{0}", val); } Console.ReadLine();1. 阅读全文
摘要:
公司人才招聘 招聘职位 招聘人数 工作经验 学历要求 高级设计师 5人 5年以上 大专及以上 设计师 4人 3年以上 大专及以上 业务员 8人 有工作经验者优先 不限 以上职位,待遇从优 单元格间隔属性:cellspacing单元格补白属性:cellpadding合并列属性:colspan合并行属性:rowspan表标题:caption表格头行元素:thead表主体元素:tbody 阅读全文
摘要:
文本 密码 单选按钮 复选 普通按钮 提交按钮 重置按钮 图像域 隐藏域 文本域 选择列表单选 选择列表多选选 多文本 阅读全文
摘要:
百钱百鸡算法:private void Sell(ref int one, ref int two, ref int three) { int a = 0, b = 0, c = 0, p = 0; for (a = 1; a <=19; a++) { for (b = 1; b <=33; b++) { c = 100 - a - b; Math.DivRem(c, 3, out p); if((5*a+3*b+c/3)==100&&p==0) { one = a; two = b; three = c; } } } }韩信点兵 private int DianB 阅读全文
摘要:
var id = $(this).parent().parent().attr("id");找父节点ids = ids.substring(1);字符串掘取 阅读全文
摘要:
public static int Find(T[] items,T item) { for (int i = 0; i (new int[] { 1, 2, 3, 4, 5, 6, 8, 9 }, 6); Console.WriteLine("6数组中的位置:" + i.ToString()); Console.ReadLine(); 阅读全文
摘要:
openFileDialog1.Filter = "文本文件(*.txt)|*.txt";//设置过滤参数 openFileDialog1.ShowDialog();//显示打开文件的对话框 textBox1.Text = openFileDialog1.FileName; StreamReader sr = new StreamReader(textBox1.Text, Encoding.Default); textBox2.Text = sr.ReadLine(); sr.Close(); 阅读全文
摘要:
冒泡排序法for (int a = 0; a < arrayData.Length - 1; a++) { for (int j = 0; j < arrayData.Length - a - 1; j++) { if (arrayData[j] > arrayData[j + 1]) { tmp = arrayData[j]; arrayData[j] = arrayData[j + 1]; arrayData[j + 1] = tmp; } } } 阅读全文
摘要:
listview 添加行数据 private void FillList(List<PhoneBook> PB) { listView1.Items.Clear(); foreach (PhoneBook phoneBook in PB) { ListViewItem item = new ListViewItem(phoneBook.PhoneName); item.SubItems.AddRange(new string[] { phoneBook.PhoneType,phoneBook.PhoneNumber}); listView1.Items.Add(item); } l 阅读全文