That's some hideous (and non-compiling) mish-mash of array concatenation code. You've got your questions and answers all mixed up. What do you actually want to know?
Dynamic alloc is allocating memory at runtime, using new. That's all it is. Anything else you do involving strcpy and all that is nothing to do with dynamic allocation.
How do you use the memory you get from dynamic allocation? The same way you use any array or pointer.
1 2
char* array = newchar[10]; // dynamically allocate
array[3] = 'f'; // Using it
I remember using it inside a constructor?
Maybe it wasn't strcpy, but firstly measuring the length of the char that is being passed in the constructor, and after thet, allocating a memory by "THE_LENGTH_OF_THE_PASSED_ARRAY+1(for the NULL terminator"
this makes more sense I think. can you please show me an example of that.
I sow something like Virtual ~actor(){delete [] name_actor;}
I remember it was used to delete a dynamic allocated memory after u done using it, can you please tell me how it works?