Re: Estor.
Changing the topic slightly, could I ask why you have used the static keyword in the following line...
static node retVal;
...and in the other code snipet...
static node* retVal = new node;
I've never really found a use for the static keyword and just wondered why you have used it in the way you have.
return Type
I (and others) have told you several times already: you must track the information ("which thing is pointed to") separately by yourself.
ok I got it to work, thanks for the help guys.
[Edited by - Ksingh30 on September 22, 2005 1:53:25 AM]
[Edited by - Ksingh30 on September 22, 2005 1:53:25 AM]
Quote:Original post by Anri
Re: Estor.
Changing the topic slightly, could I ask why you have used the static keyword in the following line...
static node retVal;
...and in the other code snipet...
static node* retVal = new node;
I've never really found a use for the static keyword and just wondered why you have used it in the way you have.
Ouch.... sorry that was copy/paste bug [smile] in second code there shold not be static keyword
this
static node* retVal = new node;
shold be
node* retVal = new node;
Thanks for pointing that out, Anri
Re: Estor.
Aww, shucks - I thought you were going to teach me some earth-shattering concept! ^_^
Re: Ksingh30.
Sorry Dad.
Aww, shucks - I thought you were going to teach me some earth-shattering concept! ^_^
Re: Ksingh30.
Sorry Dad.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement