Static array vs. dynamic array in C++

后端 未结 11 1648
遥遥无期
遥遥无期 2020-11-22 10:43

What is the difference between a static array and a dynamic array in C++?

I have to do an assignment for my class and it says not to use static arrays, only dynamic

11条回答
  •  Happy的楠姐
    2020-11-22 11:02

    I think in this context it means it is static in the sense that the size is fixed. Use std::vector. It has a resize() function.

提交回复
热议问题