How to shift an array and add a char to the middle?
I have searched the forum and couldn't really find anything. Which seems strange because this seems like it would be a common topic.
I need to shift the last item of my array and add a space/spaces to the left of that item.
Basically I am justifying an array with random numbers of spaces depending on the size of the array/line.
I am having trouble with:
1.) Figuring out how to find the location of the last element in the array.
2.) Understanding how to add an element to the middle of an array that is different sizes depending on each loop that sets the size of the array.
Thanks,
Tanner