In my program I am calling a function using a reference to a structure:
struct stringy
{
char* str;
int ct;
}
void set(reference to stringy, c-string[ ])
Inside the function I want to create an array and copy the passed c-string into the new array. Then set ct = to the length of the string and str = the pointer to my new array. I have always been taught to use new with delete but if I do...