You are viewing a single comment's thread. Return to all comments →
Indeed vector can be used.
#include <iostream> int main() { void do_work(); do_work(); } #include <vector> void do_work() { std::vector<int> vec(10); std::cout << "vec.size() -> " << vec.size() << '\n'; }
Seems like cookies are disabled on this browser, please enable them to open this website
Variable Sized Arrays
You are viewing a single comment's thread. Return to all comments →
Indeed vector can be used.