Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~10K People Reached
Favorite Forums
Favorite Tags
c++ x 6
Member Avatar for tinie

I encounter problems in inserting elements in a 2d vector. For example I want to insert 99 in v[2][5], how would I do it? What I have is this code (example given by Narue in [URL]http://www.daniweb.com/techtalkforums/thread70093.html[/URL]) [code= c++] #include <iostream> #include <iomanip> #include <vector> int main() { std::vector< std::vector<int> > …

Member Avatar for tinie
1
5K
Member Avatar for tinie

I have read that iterators are used to traverse through the elements of container classes. If I wanted to use iterators to move through elements of a 2d vector, how am I going to declare it and use it? Maybe what I said was not too clear, let me rephrase …

Member Avatar for Narue
0
4K
Member Avatar for tinie

I am currently programming in Linux using the g++ compiler. I was trying to make an open function that would open a file and store its contents in a 2d vector. I was successful at doing the said function. I thought I was done with it, but I realized that …

Member Avatar for Lazaro Claiborn
0
128