473,324 Members | 2,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Create a list of list in Stl

Hi,

How can I create a list of list in STL?
I try list < list <A*> >, but that does not work, I get compiler
errors.

Jan 11 '06 #1
9 1735
yi*****@gmail.com wrote:
How can I create a list of list in STL?
I try list < list <A*> >, but that does not work, I get compiler
errors.


FAQ 5.8

V
Jan 11 '06 #2
Sorry. My mistake.

Jan 11 '06 #3
When I do this:
A a1;
list<A> alist;
alist.push_back(a1);

does that mean I put a Copy of 'a1' to the list, alist?

So if I do this:

list < list <A> > alistOfList;

alistOfList.push_back(alist);

I put a copy of 'alist' to the alistOfList?

Jan 11 '06 #4
yi*****@gmail.com wrote:
When I do this:
A a1;
list<A> alist;
alist.push_back(a1);

does that mean I put a Copy of 'a1' to the list, alist?
Yes.
So if I do this:

list < list <A> > alistOfList;

alistOfList.push_back(alist);

I put a copy of 'alist' to the alistOfList?


Yes.

What book on C++ are you reading that you have to ask such basic
questions?

V
Jan 11 '06 #5
Yes

Jan 11 '06 #6
Yes

Jan 11 '06 #7
Yes

Jan 11 '06 #8
On 11 Jan 2006 13:41:59 -0800, "MathGis" <mh********@objectvision.nl>
wrote:
Yes
Yes
Yes
Yes
Yes
Yes


Yes!
For gawd-sakes you relentless bastard!

YES, I CAN HEAR YOU NOW!

Sorry, could not resist.

No excellent soul is exempt from a mixture of madness.
- Aristotle
Jan 11 '06 #9
MathGis wrote:
Yes


That's nice.

Brian

--
Please quote enough of the previous message for context. To do so from
Google, click "show options" and use the Reply shown in the expanded
header.
Jan 11 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Not Me | last post by:
Hi, I'm sure this is a common problem.. to create a single field from a whole column, where each row would be separated by a comma. I can do this for a specified table, and column.. and I've...
7
by: Wolfgang Kreuzer | last post by:
Hello all, I have two tables - Projects and ProjectStruct Table Projects contains master records of the projects, ProjectStruct allows to define a project herarchie and contains the fields...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
2
by: Dennis C. Drumm | last post by:
This is a restatement of an earlier post that evidently wasn't clear. I am building a custom MessageBox dialog that has, among other things, a few new button options (yes to all, no to all, etc.)...
6
by: Rich | last post by:
Hello, I want to simulate the dynamic thumbnail display of Windows Explorer (winxp) on a form or pannel container. If I place a picture box on my container form/pannel and dimension it to the...
5
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would...
23
by: sandy | last post by:
I need (okay, I want) to make a dynamic array of my class 'Directory', within my class Directory (Can you already smell disaster?) Each Directory can have subdirectories so I thought to put these...
10
by: SM | last post by:
Hello I'm trying to create a multi dimensional array in JavaScript, but after some reading i still can't figure out how to apply it to my model. Here it is: I have a list A and for each item...
1
by: yaarnick | last post by:
Create a linked list data structure library to hold strings. Then library should support the following linked list operations. Create() – Creates the linked list Insert() – Insert a string into the...
3
by: =?Utf-8?B?RGFiYmxlck5M?= | last post by:
I have the following Methods: public SecondResult DoSomething() { FirstResult firstResult=GetFirstResult(); SecondResult secondResult=GetSecondResult(firstResult); return secondResult; } ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.