繁体   English   中英

二维矩阵查询

[英]2D MATRIX QUERY

有人可以帮助我了解这段代码的含义吗?

 int m = matrix.size(), n = m? matrix[0].size(): 0, r = 0, c = n - 1;

更容易阅读相同代码的版本:

 int m = matrix.size(); // get number of rows int n = m? matrix[0].size(): 0; // if there are columns, then n becomes the number of columns, zero otherwise int r = 0; int c = n - 1;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM