User profile: dpan

User info
User name:dpan
History
Joined:
Number of posts:27
Latest posts:

Trouble declaring string member in class header file
Hmmm, ok, that fixes it. I guess I just figured that having the source code file Ship.cpp include <s...

Trouble declaring string member in class header file
My compiler keeps generating an error message when I try to declare a string member in a class decla...

Memory leak with strtok?
So adding a line later on in the program like [code]delete [] p;[/code] would suffice to reclaim the...

Memory leak with strtok?
I just came across an example of this happening in my code... [code]int main() { string input; cha...

Memory leak with strtok?
This question occurred to me today as I was working with strtok. If I create a new array of char wit...