Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite+ 3
How to declare a array of strings whose size is not yet known in c++
2 Réponses
+ 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?