Can't set variable length with variable

前端 未结 5 1272
梦如初夏
梦如初夏 2021-01-14 14:40

What I\'m trying to do right now is to create an array with a length that is defined by a variable. However, when I put the variable in the array length, it gives me a \"Va

5条回答
  •  旧时难觅i
    2021-01-14 14:54

    use STL. IF you want a variable length array you can use vectors under #include

    Native c++ array donot nave variable length array.

提交回复
热议问题