i want to create a 2D char array. my issue is that i dont know how many Rows i will need for the array...
how can i keep adding rows to the array?
Printable View
i want to create a 2D char array. my issue is that i dont know how many Rows i will need for the array...
how can i keep adding rows to the array?
Dynamic arrays in C++ are taken care of by the std::vector class. If the char arrays are actually strings, then std::string is used.
Code:#iinclude <vector>
#include <string>
std::vector<std::string> StringArray;
vector::push_back()Quote:
how can i keep adding rows to the array?
Regards,
Paul McKenzie
thank you :)