Answers for "vector of vectors of pairs c++"

C++
0

vector of pairs declaration in cpp

vector<pair<int,int>>v;
Posted by: Guest on July-05-2020
0

vector of vectors of pairs c++

vector<vector<pair<int, float>>> vec(10, vector<pair<int, float>>(5, pair<int, float>(0, 0)));

	for (int i = 0; i < vec.size(); i++)
	{
		for (int j = 0; j < vec[i].size(); j++)
		{
			cout << vec[i][j].first << " ";
			cout << vec[i][j].second << " ";
		}
		cout << endl;
	}
Posted by: Guest on May-12-2021

Code answers related to "vector of vectors of pairs c++"

Browse Popular Code Answers by Language