Quote Originally Posted by AndrewHunter View Post
For your current code you would need to use your structure member str, and alloc space for it using new to create a char array size strlen(y)+1. The plus 1 is so you can append the '\0' char at the end.
My modus operandi is to keep re-reading the chapter and testing new ideas with the compiler until I finally get it right. Then I always document the struggle so that I never forget it. I have to hit the hay now, but I will attack this anew tomorrow afternoon.

Thank you for your assistance. I realize you guys have to deal with a lot of dunderheads, and it probably gets old.