bonjour à tous,
voila mon problème
j'essaye de faire une matrice de string
vector<vector<char> >matrice;
puis
je veux mettre une chaine
char c[20];
matrice.push_back(c);
il me renvoie
error C2664: 'push_back' : cannot convert parameter 1 from 'char [20]' to 'const class std::vector<char,class std::allocator<char> > &'
Reason: cannot convert from 'char [20]' to 'const class std::vector<char,class std::allocator<char> >'
No constructor could take the source type, or constructor overload resolution was ambiguous
en fait je veux pas faire une matrice mais plutot un vecteur qui contient des chaine de caractère,cependant je crois que la solution c'est dans la matrice
comment je doit faire.
merci

 

 
		
		 
        

 
			
			


 vector<vector<char> > Matrice;
 vector<vector<char> > Matrice;
				 Répondre avec citation
  Répondre avec citation
Partager