New course! Every coder should learn Generative AI!
Try a free lesson+ 3
How to declare a array of strings whose size is not yet known in c++
2 Answers
+ 9
Vectors would be easier, but as an attempt:
//Assuming var is your unknown size:
std::string * str_arr = new std::string[var];
+ 8
use vector instead?