Suppose I have a vector<pair<int,int>> v, the values are in v is {[1,3],[3,7],[8,9]}. I want to store them in vector<vector<int>> vv.
How can I do this?
I try to store them in vector<vector<int>> vv but I can't solve this
Suppose I have a vector<pair<int,int>> v, the values are in v is {[1,3],[3,7],[8,9]}. I want to store them in vector<vector<int>> vv.
How can I do this?
I try to store them in vector<vector<int>> vv but I can't solve this
Copyright © 2021 Jogjafile Inc.
You can convert vector of pairs to vector of vectors by using a for-each loop.