摘要: //前台 账号:<asp:TextBox ID="txtName" runat="server"></asp:TextBox><br /> 密码:<asp:TextBox ID="txtPwd" runat="server"></asp:TextBox><br /> <asp:Button ID=" 阅读全文
posted @ 2024-03-16 20:18 過朢 阅读(19) 评论(0) 推荐(0)
摘要: (1)去重 int[] arr = { 1, 4, 3, 1, 6, 5, 6 };int[] arr2 = arr.Distinct().ToArray(); for (int i = 0; i < arr2.Length; i++) { Console.WriteLine(arr2[i]); } 阅读全文
posted @ 2024-03-16 20:16 過朢 阅读(194) 评论(0) 推荐(0)
摘要: string str = "两只老虎,两只老虎,跑得快,跑得快。一只没有耳朵,一只没有尾巴,真奇怪,真奇怪。"; Dictionary<char, int> dic = new Dictionary<char, int>(); for (int i = 0; i < str.Length; i++) 阅读全文
posted @ 2024-03-16 19:56 過朢 阅读(13) 评论(0) 推荐(0)
摘要: SqlDataAdapter sda = new SqlDataAdapter(); //DataSet //查询调用存储过程 需要先准备一个命令对象 SqlCommand cmd=new SqlCommand("PR_selectNew",conn); cmd.CommandType = Comm 阅读全文
posted @ 2024-03-16 19:50 過朢 阅读(35) 评论(0) 推荐(0)