In C++ arrays start from zero, not 1. So an array comprises elements  through , and assigning to array causes undefined behaviour.
I don't know why you would want to store the first name in "names" and the subsequent names in "newname[i]". It makes more sense to store them all in "newname" and remove "names" altogether.
Not sure I understand your last question, but if you're asking what I think you're asking, then let me point out that you already know how to do a for loop
, how to display stuff on the screen and how to reference individual elements of an array. Maybe you could think about how to combine that stuff to get the result you want rather than just asking me to do it for you.