Click here to Skip to main content
15,923,689 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralMS Exchange Server Problem: How to: Adding an Event Registration for a Folder. Please Help me ......... Pin
Atif Bashir20-Aug-03 3:51
Atif Bashir20-Aug-03 3:51 
QuestionHow to use "IEnumString" in MFC project? Pin
simonchen.net19-Aug-03 17:43
simonchen.net19-Aug-03 17:43 
GeneralSTL compiler messages. Pin
WREY19-Aug-03 11:44
WREY19-Aug-03 11:44 
GeneralRe: STL compiler messages. Pin
valikac19-Aug-03 13:01
valikac19-Aug-03 13:01 
GeneralRe: STL compiler messages. Pin
Andrew Walker19-Aug-03 13:10
Andrew Walker19-Aug-03 13:10 
GeneralRe: STL compiler messages. Pin
John M. Drescher19-Aug-03 13:54
John M. Drescher19-Aug-03 13:54 
GeneralMessages Pin
cberam19-Aug-03 1:44
cberam19-Aug-03 1:44 
QuestionList of object or list of pointers to objects? Pin
Jeremy Pullicino18-Aug-03 21:34
Jeremy Pullicino18-Aug-03 21:34 
Hi,

I have a class similar to the one below:

class CBook{
public:
char m_szAuthor[256];
char m_szBookname[256];
long m_nID;
};

I need to store a list of thousands of CBook objects. I need to do sorting on the list.

Assuming that I am going to use the std::list STL object, would it be better for me to create a list of objects or of pointers?

ie: list<cbook> or list<cbook*> ?

What are the advantages/disadvantages of each?

Thanks in advance,
Jeremy.

Jeremy Pullicino
C++ Developer

Homepage
AnswerRe: List of object or list of pointers to objects? Pin
jhwurmbach18-Aug-03 21:57
jhwurmbach18-Aug-03 21:57 
GeneralRe: List of object or list of pointers to objects? Pin
Jeremy Pullicino18-Aug-03 22:37
Jeremy Pullicino18-Aug-03 22:37 
GeneralRe: List of object or list of pointers to objects? Pin
jhwurmbach18-Aug-03 23:30
jhwurmbach18-Aug-03 23:30 
AnswerRe: List of object or list of pointers to objects? Pin
Andrew Walker19-Aug-03 1:27
Andrew Walker19-Aug-03 1:27 
GeneralSTL list Pin
Anthony_Yio18-Aug-03 21:01
Anthony_Yio18-Aug-03 21:01 
GeneralRe: STL list Pin
jhwurmbach18-Aug-03 21:38
jhwurmbach18-Aug-03 21:38 
GeneralRe: STL list Pin
Anthony_Yio18-Aug-03 22:20
Anthony_Yio18-Aug-03 22:20 
GeneralRe: STL list Pin
Jeremy Pullicino18-Aug-03 21:39
Jeremy Pullicino18-Aug-03 21:39 
GeneralRe: STL list Pin
Anthony_Yio18-Aug-03 22:03
Anthony_Yio18-Aug-03 22:03 
GeneralRe: STL list Pin
jhwurmbach18-Aug-03 22:09
jhwurmbach18-Aug-03 22:09 
GeneralRe: STL list Pin
Anthony_Yio18-Aug-03 22:23
Anthony_Yio18-Aug-03 22:23 
GeneralRe: STL list Pin
Anthony_Yio18-Aug-03 22:37
Anthony_Yio18-Aug-03 22:37 
GeneralRe: STL list Pin
jhwurmbach18-Aug-03 23:22
jhwurmbach18-Aug-03 23:22 
GeneralRe: STL list Pin
Anthony_Yio19-Aug-03 17:03
Anthony_Yio19-Aug-03 17:03 
GeneralEvents Pin
cberam18-Aug-03 2:11
cberam18-Aug-03 2:11 
GeneralRe: Events Pin
valikac18-Aug-03 12:04
valikac18-Aug-03 12:04 
GeneralRe: Events Pin
cberam18-Aug-03 17:51
cberam18-Aug-03 17:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.