我刚刚遇到了使用的代码!!,这意味着逻辑不对我.
app.isArray = Array.isArray || function(object) {
return !!(object && object.concat
&& object.unshift && !object.callee);
};
Run Code Online (Sandbox Code Playgroud)
使用!!和不使用它有什么不同?
(我的猜测是!!将结果转换为布尔类型.如果我的猜测是正确的,为什么会这样?)
我有一个2D数组列表:
float a[][9] = { ... }
float b[][9] = { ... }
float c[][9] = { ... }
Run Code Online (Sandbox Code Playgroud)
我想要另一个指向每个2D数组的指针数组,如下所示:
what_should_be_here?? arr[] = { a, b, c }
Run Code Online (Sandbox Code Playgroud)
怎么做到这一点?