...



 DEVELOP > c-Plus-Plus > ...

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: "Sugers.MyBigDude.Here"
Date: 17 Jan 2005 04:05:39 AM
Object: ...
hana1 wrote:

Hello guys,
I just have a quick question about C++. I am moving from Java to C++. And as
many of Java users know, all linked list and trees are already implemented
and you just have to instantiate them. Is tehre a simiar thing in c++, or I
have to write my own Linked list class?

Thank you very much
Cheers

Plus, it also depends on what type are you handling with, for POD
types as my dude already mentioned above, you can simply use STL
containers, but for some other cases, it will be mostly
self-implemented link-list or trees, etc...anyway, in C++, "things"
like containers can be "borrowed" in the hierarchy to accomplish your
purpose...
.

User: "Dietmar Kuehl"

Title: Re: ... 17 Jan 2005 07:12:03 AM
Sugers.MyBigDude.Here wrote:

Plus, it also depends on what type are you handling with, for POD
types as my dude already mentioned above, you can simply use STL
containers, but for some other cases, it will be mostly
self-implemented link-list or trees, etc...

I tend to put arbitrary objects into STL containers. Those which I
can't
put there directly, e.g. because they are not Assignable, I put into
STL
containers via appropriate smart pointers. Can you please tell me in
which cases I have to self-implement a link-list or a tree? Apparently
I'm doing something really wrong...
--
<mailto:dietmar_kuehl@yahoo.com> <http://www.dietmar-kuehl.de/>
<http://www.contendix.com> - Software Development & Consulting
.


  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER