摘要:
用new运算符动态的分配内存,用delete运算符释放这些内存 ###1、以int*为例: ####1.1、动态创建 int *channelLen; channelLen = new int[3]; ####1.2、动态释放 delete []channelLen; channelLen = NU 阅读全文
摘要:
DataSet ds = SqlHelper.ExecuteDataset(SqlHelper.ConnString, CommandType.Text, Sql.ToString()); if (ds.Tables[0].Rows.Count > 0) { foreach (DataRow dr 阅读全文
摘要:
public static List<int> GetAllIDBySql(string strSql) { List<int> lst = new List<int>(); DataSet ds = SqlHelper.ExecuteDataset(SqlHelper.ConnString, Co 阅读全文