Hello I have been trying for a while to copy a string to an array, i know i can copy an char_array element to a string but its with a two dimension. How can i do this? i want it to be user entered. Sorry for my grammatical errors.
I want to do something like this, sorry i did not fix the code before,
i want to put a string into an array, so i could then by each of the columns of the 2 dimension array of the element [0][here] see each letter that the user entered.
So then i can convert each letter to int with casting.
Sorry again for my grammatical.
Hey;
Use a vector, you no need to maintain the index for the array.
You need to push the data sequentially to the vector and access it as your own need.