Hi there,
well first you need to decide which sequence conatiner you are willing to use.
The STL provides programmers with the following artifacts, grouped into three categories:
* Sequences
o C++ Vectors
o C++ Lists
o C++ Double-Ended Queues
* Container Adapters
o C++ Stacks
o C++ Queues
o C++ Priority Queues
* Associative Containers
o C++ Bitsets
o C++ Maps
o C++ Multimaps
o C++ Sets
o C++ Multisets
A great reference site is
http://www.sgi.com/tech/stl/
In order to insert elements into sequences in most you use the following methods:
void push_front(const T&
Inserts a new element at the beginning.
void push_back(const T&
Inserts a new element at the end.
I assume you want to fill your container with the currencies and their conversion factors.
Why don't you use maps to store your conversion factors?
For example:
map<const char*,map<const char*,double> > mConversionFactors;
Cheers
Dariusz