码迷,mamicode.com
首页 >  
搜索关键字:row    ( 12323个结果
LeetCode: Search a 2D Matrix [074]
【题目】 Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted from left to right. The first integer of each row is greater than the last integer of the previous ...
分类:其他好文   时间:2014-06-05 08:28:43    阅读次数:321
LeetCode: Set Matrix Zeroes [073]
【题目】 Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. 【题意】 给定一个mXn的矩阵,如果其中的元素为0,则对应的行和列都用0填充。 不能申请额外的空间。 【思路】 第一行和第一列空出来标记需要置0的列和行 第一遍扫描: 扫描第一行,判断第一行是否需要清零 ...
分类:其他好文   时间:2014-06-05 08:07:11    阅读次数:229
centOS下进入mysql报错-You must SET PASSWORD before executing this statement
解决办法: mysql>  SET PASSWORD = PASSWORD('123456'); Query OK, 0 rows affected (0.03 sec) mysql> create database roger; Query OK, 1 row affected (0.00 sec) 也就是用mysql>  SET PASSWORD = PASSWORD('123456...
分类:数据库   时间:2014-06-05 00:19:53    阅读次数:294
自动从DataRow里取数据给属性赋值
public abstract class ModelsBase { //自动从DataRow里取数据给属性赋值 public void RightDataFrom(DataRow row) { Type type = this.GetType(); //遍历每一个属性 foreach...
分类:其他好文   时间:2014-06-04 20:18:20    阅读次数:197
使用NOPI读取Word、Excel文档内容
使用NOPI读取Excel的例子很多,读取Word的例子不多。Excel的解析方式有多中,可以使用ODBC查询,把Excel作为一个数据集对待。也可以使用文档结构模型的方式进行解析,即解析Workbook(工作簿)、Sheet、Row、Column。Word的解析比较复杂,因为Word的文档结构模型...
分类:其他好文   时间:2014-05-31 00:53:10    阅读次数:1651
Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:其他好文   时间:2014-05-30 14:59:37    阅读次数:241
GridView里做页面的链接
采用Gridview的OnRowDataBound属性后台protected void gvTranslateInfo_RowDataBound(object sender, GridViewRowEventArgs e) { if(e.Row.RowIndex>...
分类:其他好文   时间:2014-05-28 22:38:21    阅读次数:265
jbpm4.4碰到的异常处理收集(持续更新...)
1.异常:Cannot delete or update a parent row: a foreign key constraint fails 解决方案:将MySQL方言修改为org.hibernate.dialect.MySQLInnoDBDialect问题解决
分类:其他好文   时间:2014-05-26 10:29:56    阅读次数:229
DataTable排序(来自其他空间)
DataTable排序DataRow[] rows = dataTable1.Select("", "ord asc");DataTable t = DataTable1.Clone();t.Clear();foreach (DataRow row in rows) t.ImportRow(row)...
分类:其他好文   时间:2014-05-25 20:16:33    阅读次数:341
php -- 连接Mysql 数据库
-----022-mysql.php ----- 1 2 3 4 5 MySQL 6 7 8 MySQL 9 10 mysql_fetch_row查询数据:", "\n";22 while(list($a, $b, $c) = mysql_fetch_row($r...
分类:数据库   时间:2014-05-25 03:24:55    阅读次数:281
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!