473,387 Members | 1,553 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,387 software developers and data experts.

C++ Data Structure???

I am an intermediate programmer and I have a question about the C++
Data Structures.What are the built-in data structures available in C++
rather than the arrays??I would like specifically to ask about the
StackS,QueueS and the Linked ListS,are there namespaces that I can
include to use directly?And if yes,what are the names of these classes
or namespaceS???
Best Regards,
Jul 22 '05 #1
3 1912
Rashrashetta wrote:
I am an intermediate programmer and I have a question about the C++
Data Structures.What are the built-in data structures available in C++
rather than the arrays??I would like specifically to ask about the
StackS,QueueS and the Linked ListS,are there namespaces that I can
include to use directly?And if yes,what are the names of these classes
or namespaceS???


You are asking about the Standard Template Library (STL), and its iterators,
containers, and algorithms. Use Google.com to look them up. They will
provide many hours of fun.

--
Phlip
http://industrialxp.org/community/bi...UserInterfaces

Jul 22 '05 #2

"Rashrashetta" <ra*********@hotmail.com> wrote in message
news:6c**************************@posting.google.c om...
I am an intermediate programmer and I have a question about the C++
Data Structures.What are the built-in data structures available in C++
rather than the arrays??
The container types of the standard library.

Sequence containers:
'std::deque'
'std::list'
'std::vector'

Sequence container adapters:
'std::queue'
'std::priority_queue'
'std::stack'

Associative containers:
'std::bitset'
'std::map'
'std::multimap'
'std::set'
'std::multiset'

Read about them in a good C++ textbook. The best book about
the C++ standard library I know of is:
www.josuttis.com/libbook

I would like specifically to ask about the
StackS,QueueS and the Linked ListS,are there namespaces that I can
include to use directly?
All standard library names (except macros) are declared
in namespace 'std'.
And if yes,what are the names of these classes
or namespaceS???


See above.

-Mike
Jul 22 '05 #3
On 8 Sep 2004 11:48:58 -0700, ra*********@hotmail.com (Rashrashetta)
wrote:
I am an intermediate programmer and I have a question about the C++
Data Structures.What are the built-in data structures available in C++
rather than the arrays??I would like specifically to ask about the
StackS,QueueS and the Linked ListS,are there namespaces that I can
include to use directly?And if yes,what are the names of these classes
or namespaceS???
Best Regards,


You need to look at the Standard Library, in particular the bit of it
that used to be known as the Standard Template Library (STL).

This has various containers: vector, list, deque, set, map, string and
others. One or more of these should be what you want. All of them
are in the std namespace.

For an on-line STL reference look at http://www.sgi.com/tech/stl/

If you prefer dead trees then look for "The C++ Standard Library" by
Nicolai Josuttis.
rossum

--

The ultimate truth is that there is no Ultimate Truth
Jul 22 '05 #4

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

Similar topics

1
by: dmb000006 | last post by:
Hello, I have a database style data structure, each record has several fields. I would like to create a nested data structure that would let me 'query' the data on the value of certain...
3
by: Mike Jones | last post by:
need help with data structures.Looking for ways to start, sample code, anything Program description: Design and implement a Visual C++ .NET program that inserts values into a data...
2
by: yee young han | last post by:
I need a fast data structure and algorithm like below condition. (1) this data structure contain only 10,000 data entry. (2) data structure's one entry is like below typedef struct _DataEntry_...
11
by: theshowmecanuck | last post by:
As a matter of academic interest only, is there a way to programmatically list the 'c' data types? I am not looking for detail, just if it is possible, and what function could be used to...
5
by: Alfonso Morra | last post by:
Hi, I am writing a messaging library which will allow me to send a generic message structure with custom "payloads". In many cases, a message must store a non-linear data structure (i.e....
3
by: Kiran B. | last post by:
Hi, I am new to .net. I have two Data Structure Type ... Sturcture A and Structure B. Structure A Public Fname as String Public LastName as String Public City as String Public Zip as String...
11
by: Macca | last post by:
Hi, I'm writing an application that will pass a large amount of data between classes/functions. In C++ it was more efficient to send a pointer to the object, e.g structure rather than passing...
3
by: aurora | last post by:
This is an entry I just added to ASPN. It is a somewhat novel technique I have employed quite successfully in my code. I repost it here for more explosure and discussions. ...
29
by: zoltan | last post by:
Hi, The scenario is like this : struct ns_rr { const u_char* rdata; }; The rdata field contains some fields such as :
30
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.