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 :-)
     J  Y   Y  L     BBBB   L    
J Y Y L B B L
J Y L BBBB L
J J Y L B B L
JJJ Y LLLL BBBB LLLL