Please support our C++ advertiser: Programming Forums
![]() |
•
•
Join Date: Jan 2008
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
i am trying to pair a vector and an integer but
did not work??
map<vector[i][j],int>m; m.insert(pair<vector[i][j],int>,(v[1][0],sum));
did not work??
•
•
Join Date: Feb 2006
Location: India
Posts: 53
Reputation:
Rep Power: 3
Solved Threads: 2
By definition of maps compare what are you doing right now and what do you want it to do.May be what you want is
Hope it helps!
map<vector<vector<int> >,int > m; vector<vector<int> > vvi; int i; m.insert(make_pair(vvi,i));
return 0;
![]() |
Similar Threads
Other Threads in the C++ Forum
- vector iterators vs operator [] (C++)
- STL funciton return vector of map iterators (C++)
- A function which will transfer the data from a file to STL( vector or map) object. (C++)
- Using map<> with classes (C++)
Other Threads in the C++ Forum
- Previous Thread: 2 array
- Next Thread: Quadratic probing insert function help
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode