For create and using a vector (a dynamique table)we can use:
#include <vector>
using namespace std ;
vector<int> tableau;//a table of int for instance
void main()
{
tableau.push_back(5); //tu insére 5 dans le tableau
swap...
}
But how can create and using a vector which had two dimensions like we do with a static table
( int tab[10][12]
Thanks.
#include <vector>
using namespace std ;
vector<int> tableau;//a table of int for instance
void main()
{
tableau.push_back(5); //tu insére 5 dans le tableau
swap...
}
But how can create and using a vector which had two dimensions like we do with a static table
( int tab[10][12]
Thanks.