i want to create a dynamic string array without using vectors or pointers.is that possible ??
several candidates are stored in the " Ausgabe " i want to copy all this Element in the " Ausgabe " to the String Array and later expand this array. in the code Below i only get the last Element and the others are lost. is there any solution to get all the Element stored in the array and output it ?
string myArray[5];
const int len = (sizeof(myArray) / sizeof(myArray[0]));
myArray[0] = ausgabe;
const int x = 5;
const int y = sizeof(myArray) / sizeof(myArray[0]); // =5
string neuArray[x + y] = {};
copy(begin(myArray), end(myArray), begin(neuArray));
for (int i = 0; i < x + y; i++) {
cout << neuArray[i] << endl;
}