When I use the following code I get a mem address(?) before the second item of the pair like this: 666, 0x6090e8667 666, 0x6090e8667 666, 0x6090e8667.
What am I doing wrong?
std::vector<std::vector<std::vector<std::pair<int,int> > > > total;
int main()
{
total.resize(10);
for (int i = 0; i < 10; ++i)
{
total[i].resize(10);
}
for (int i = 0; i < 10; i++)
{
total[0][0].push_back(std::make_pair(666,667));
}
for (int i=0; i<3; i++)
{
std::cout << total[0][0][i].first << ", " <<
std::cout << total[0][0][i].second << '\t';
}
std:: cout << std::endl;
}