Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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;
	}
 
PREVIOUS NEXT
Tagged: #vector #vectors #pairs
ADD COMMENT
Topic
Name
5+6 =