Really want to do... Want a key to store multiple value, think of another way, bosses for help!!!!! 1
CodePudding user response:
MapLevel;//this?
CodePudding user response:
# include & lt; Vector>
# include & lt; Map>
# include & lt; Iostream>
using namespace std;
Int main () {
VectorVi0;
VectorVi1;
Map* & gt; Mipv;
Vi0. Push_back (0);
Vi0. Push_back (1);
Vi1. Push_back (2);
Vi1. Push_back (3);
Mipv [0]=& amp; Vi0;
Mipv [1]=& amp; Vi1;
Vector* pvi.
Pvi=mipv [0];
cout<* (pvi) [0]cout<* (pvi) [1] Pvi=mipv [1];
cout<* (pvi) [0]cout<* (pvi) [1]
return 0;
}
CodePudding user response:
The following code is no problem, you go wrong because certain other# include & lt; Map>
# include & lt; Vector>
using namespace std;
Int main ()
{
Mapm;
VectorV.
Valerie plame ush_back (1);
Valerie plame ush_back (2);
M [0]=v;
}
CodePudding user response: