In the code above I am reading those names and I store them in an array of char-pointers called p and I am printing those names on the screen.
But I want to manipulate every name before I will print them and I don't know how. So, I want to transform every element of that array (every p[i]) in an array of characters (x) so that when I execute cout<<x[0] to print the first character of a name (it doesn't matter which one). How can I do that?
Thanks!
L.E: I tried to write all those strings to a file and then to read them. I didn't succeded. Please help me.