|
-
February 13th, 2003, 06:51 PM
#1
STL question
Hi All,
I have the following code which inserts elements into a
vector<list<vector<int> > > .
void bucketInsert(int n, vector<list<vector<int> > > &vliBuckets)
{
list<vector<int> > templst;
list<vector<int> >::iterator it;
vector<int> newvec(3);
int t = n%10;
newvec.push_back(n);
newvec.push_back(int(n/10));
newvec.push_back(0);
vliBuckets[t].push_back(newvec);
}
I am running into problems when I am trying to display the elements which I store. Could anybody help with a code snippet doing this.
Also, in case like the above one how do you check memory storage. In other words how can one see the elements which are getting stored.
Any help will be appreciated.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|