By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,434 Members | 1,878 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,434 IT Pros & Developers. It's quick & easy.

Re: Strooustrup Exercise - doubly-linked list

P: n/a
Salt_Peter wrote:
On Nov 7, 12:46 am, arnuld <sunr...@invalid.addresswrote:
[...]
> my_tree->word = NULL;

member word is a std::string, not a pointer

my_tree->word = "";
Um, what's wrong with 'my_tree->word.clear()'?
[...]
Schobi
Nov 7 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Fri, 07 Nov 2008 10:43:22 +0100, Hendrik Schober wrote:
Um, what's wrong with 'my_tree->word.clear()'?
because I did not know this member function.


--
www.lispmachine.wordpress.com
my email is @ the above blog.
Nov 7 '08 #2

P: n/a
arnuld wrote:
>On Fri, 07 Nov 2008 10:43:22 +0100, Hendrik Schober wrote:
> Um, what's wrong with 'my_tree->word.clear()'?

because I did not know this member function.
(It wasn't directed at you.)

Schobi
Nov 8 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.