Reputation: 65
I looked around the web for this but I did not find an answer. If my class has a protected member declared as such: char * arr[3] = {"Blah", "Blah", "Blah"}
Would I need to delete this member in the destructor? If so, what is the correct syntax? Thank you!
Upvotes: 1
Views: 73
Reputation: 14705
Would I need to delete this member in the destructor?
No.
And of course:
I can’t use the string class, it’s a programming assignment and they want all strings to be stored as char*
This is a quite silly restriction in a C++ assignment.
Upvotes: 1