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!
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.