I highly recommend Thinking in C++, even for complete beginners. I had to skip everything about the C-style stash and stack stuff that popped up throughout the book, but as far as introducing new C++...
Type: Posts; User: Maulrus
I highly recommend Thinking in C++, even for complete beginners. I had to skip everything about the C-style stash and stack stuff that popped up throughout the book, but as far as introducing new C++...
This is a bit off-topic, but I had the exact same problem while trying to complete the same exercise.
Oh right, I forget to add an extra size++ for the \0 character. Thanks for all the help with this! I spent a good amount of time in class today sitting and trying to get this to work, and I have a...
Okay, thanks. Let me see if I understand: the pointer inside the function IS the object in main(), so if you allocate the space for it in a function, it can be deallocated outside of the function?
...
Making dynChar return a pointer and changing d to a pointer worked, though I still can't figure out how to get the array size from the inputted array.
I put the delete[] after return because the...
Here is the exercise I am trying to complete:
I have a basic understanding of pointers, but I'm totally new to dynamic memory, so I really had no idea what to do with this one. Here's my...
I'd like to know because I'm pretty sure I know him. I see he has (or had?) a pretty significant role here, but I can't seem to find any recent posts by him. Is he still active here?