Ajouter un commentaire

K-lo

bon j'ai rien trouvé avec boost:?
Je me retourne vers la méthode du test de la taille

try{
if((int)v.size() < (pos-1) ){ //-1 : voir assign 
   throw(1);
}
v1.assign(v.begin(), v.begin()+pos); 
}catch(...){
//code 
}

Filtered HTML

Plain text

CAPTCHA
Cette question permet de vérifier que vous n'êtes pas un robot spammeur :-)
  GGG   U   U   SSS   M   M  X   X 
G U U S MM MM X X
G GG U U SSS M M M X
G G U U S M M X X
GGG UUU SSSS M M X X