简体   繁体   English

我如何制作多维数组arduino

[英]How can i make multidimensional arrays arduino

how can i make a multidimensional array in the arduino. 我如何在arduino中制作多维数组。

I would like to have this. 我想要这个。

Javascript 使用Javascript
{
      "name": "John",
      "age": "51",
      "children": [
        "Sara",
        "Daniel"
      ]
    };

or this. 或这个。

JSON JSON
\n\n    { {\n      "name": "John", “ name”:“ John”,\n      "age": "51", “ age”:“ 51”,\n      "children": [ “孩子们”:[\n        "Sara", “萨拉”\n        "Daniel" “丹尼尔”\n      ] ]\n    }; };\n\n

How can i do that? 我怎样才能做到这一点?

This: 这个:

var array = {
  name: "John",
  age: "51",
  children: [
    "Sara",
    "Daniel"
  ]
};

Is not a multiminesional array this is an object. 不是多维数组,这是一个对象。

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

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