Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question#include <vector> #include std::vector tb(10, 0); // tb est un tableau de 10 int valant 0 for (size_t i = 0 ; i < tb.size() ; i++) { tb[i] = i; } std::sort( tb.begin(), tb.end(), std::greater());