Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hallo!
Wie kann man in einem std::vector zwei elemente tauschen? gibt es dafür eine fertige functionalität?
danke,
Die gibts es, nennt sich std::swap und befindet sich in <algorithm> std::swap( myVector[0], myVector[1] );
danke.