Normally if I for example have string array[10] I can initialize all spots in the array like:
for(int i = 0; i < 10; i++)
array[i] = "";
or if it is an array with pointers I write array[i] = nullptr instead, but how do I initialize when the type is more general like T array[10]?
Aucun commentaire:
Enregistrer un commentaire