copy a string into a dynamic array
hello ..
help me with this :
i have a function that recieve a string name
and i need to copy this string into a dynamic array of char type!
i've manipulate this method while im searching
1 2 3
|
string FileMeasure="Hello FILE!"
int TempNumOne=FileMeasure.size();
char *arr= new char[TempNumOne];
|
is it suitable as first step.?
Last edited on
Topic archived. No new replies allowed.